Home
last modified time | relevance | path

Searched refs:char_offset (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_navigator_test.cc188 for (int char_offset = 0; char_offset < kCharsPerFlat; ++char_offset) { in TEST_P() local
189 Position pos = nav.Skip(char_offset); in TEST_P()
192 EXPECT_THAT(pos.offset, Eq(char_offset)); in TEST_P()
197 for (int char_offset = 0; char_offset < kCharsPerFlat; ++char_offset) { in TEST_P() local
202 Position pos1 = nav.Skip(length1 + char_offset); in TEST_P()
205 ASSERT_THAT(pos1.offset, Eq(char_offset)); in TEST_P()
208 Position pos2 = nav.Skip(length2 - length1 + char_offset); in TEST_P()
211 ASSERT_THAT(pos2.offset, Eq(char_offset)); in TEST_P()
223 for (int char_offset = 0; char_offset < kCharsPerFlat; ++char_offset) { in TEST_P() local
224 Position pos = nav.Seek(char_offset); in TEST_P()
[all …]
/third_party/gn/src/base/strings/
Dutf_string_conversion_utils.cc66 size_t char_offset = output->length(); in WriteUnicodeCharacter() local
67 size_t original_char_offset = char_offset; in WriteUnicodeCharacter()
68 output->resize(char_offset + CBU8_MAX_LENGTH); in WriteUnicodeCharacter()
70 CBU8_APPEND_UNSAFE(&(*output)[0], char_offset, code_point); in WriteUnicodeCharacter()
74 output->resize(char_offset); in WriteUnicodeCharacter()
75 return char_offset - original_char_offset; in WriteUnicodeCharacter()
85 size_t char_offset = output->length(); in WriteUnicodeCharacter() local
86 output->resize(char_offset + CBU16_MAX_LENGTH); in WriteUnicodeCharacter()
87 CBU16_APPEND_UNSAFE(&(*output)[0], char_offset, code_point); in WriteUnicodeCharacter()