Chromium Code Reviews
DescriptionSimplify UTF16LE_Encode and add unittest.
Previously, UTF16LE_Encode take an optional flag to indicate
if the returned byte string has trailing zeros. In fact, no where
needs the flag to be false. So just get rid of it so callers won't
misuse.
The bug is found by https://codereview.chromium.org/837723009
R=tsepez@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/0185408126529d5df7e095c5789affd4ae971375
Patch Set 1 #Patch Set 2 : Add unittest #Patch Set 3 : Format #
Total comments: 6
Patch Set 4 : use struct, fix test case #Patch Set 5 : tab #
Messages
Total messages: 9 (1 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||