Home
last modified time | relevance | path

Searched refs:IsValidCodePointIndex (Results 1 – 5 of 5) sorted by relevance

/external/chromium_org/ui/gfx/
Dutf16_indexing.cc12 bool IsValidCodePointIndex(const base::string16& s, size_t index) { in IsValidCodePointIndex() function
27 delta += IsValidCodePointIndex(s, base++) ? 1 : 0; in UTF16IndexToOffset()
29 delta -= IsValidCodePointIndex(s, pos++) ? 1 : 0; in UTF16IndexToOffset()
43 offset -= IsValidCodePointIndex(s, pos++) ? 1 : 0; in UTF16OffsetToIndex()
45 offset += IsValidCodePointIndex(s, --pos) ? 1 : 0; in UTF16OffsetToIndex()
52 if (!IsValidCodePointIndex(s, pos)) in UTF16OffsetToIndex()
Dutf16_indexing.h15 GFX_EXPORT bool IsValidCodePointIndex(const base::string16& s, size_t index);
Dutf16_indexing_unittest.cc16 EXPECT_EQ(i != the_invalid_index, IsValidCodePointIndex(s, i)); in TEST()
Drender_text_win.cc744 return gfx::IsValidCodePointIndex(text(), position) && in IsCursorablePosition()
947 if (!IsValidCodePointIndex(layout_text, run_break)) in ItemizeLogicalText()
971 DCHECK(IsValidCodePointIndex(layout_text, run_break)); in ItemizeLogicalText()
Drender_text_pango.cc270 if (!gfx::IsValidCodePointIndex(text(), position)) in IsCursorablePosition()