Fix codepoint iteration in ReplaceControlCharactersWithSymbols
The CL is fixing a bug when the rewriting loop iterate through the input text. If the codepoint is updated with a larger codepoint, the next_offset was not updated properly and was pointing in the middle of the surrogate pair. This was not happening since only the PUA codepoints were producing larger characters. Change-Id: I4c6eea9a1a02374d04a0271bd4d6140e123069ba Bug: 4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1903808Reviewed-by:Alexei Svitkine <asvitkine@chromium.org> Commit-Queue: Etienne Bergeron <etienneb@chromium.org> Cr-Commit-Position: refs/heads/master@{#713491}
Showing
Please register or sign in to comment