DescriptionPrevent copyTextTo() from Breaking Code Points
This CL renames and hides original |copyTextTo()| functions as private
|copyCodeUnitsTo()|.
New |copyTextTo()| functions are introduced to |TextIterator| and
|SimplifiedBackwardsTextIterator| to allow copying a range of characters
to a buffer without worrying about breaking code points. The new functions
are implemented as wrappers of |copyCodeUnitsTo()|.
This is part of a bigger CL [1].
[1] https://codereview.chromium.org/1604783002
BUG=n/a
TEST=webkit_unit_tests --gtest_filter=*TextIteratorTest.CopyWholeCodePoints
Committed: https://crrev.com/503351d5107ecbf885344e7cf3703bfff238b50b
Cr-Commit-Position: refs/heads/master@{#370669}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Hide unsafe |copyTextTo()| #Patch Set 3 : #
Total comments: 2
Patch Set 4 : #Patch Set 5 : Introduce |isBetweenSurrogatePair()| #Patch Set 6 : Rebased #
Total comments: 3
Patch Set 7 : #
Total comments: 1
Patch Set 8 : #
Messages
Total messages: 19 (5 generated)
|