Searched refs:char_offset (Results 1 – 2 of 2) sorted by relevance
188 for (int char_offset = 0; char_offset < kCharsPerFlat; ++char_offset) { in TEST_P() local189 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() local202 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() local224 Position pos = nav.Seek(char_offset); in TEST_P()[all …]
66 size_t char_offset = output->length(); in WriteUnicodeCharacter() local67 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() local86 output->resize(char_offset + CBU16_MAX_LENGTH); in WriteUnicodeCharacter()87 CBU16_APPEND_UNSAFE(&(*output)[0], char_offset, code_point); in WriteUnicodeCharacter()