Searched refs:IsValidCodePointIndex (Results 1 – 5 of 5) sorted by relevance
/external/chromium_org/ui/gfx/ |
D | utf16_indexing.cc | 12 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()
|
D | utf16_indexing.h | 15 GFX_EXPORT bool IsValidCodePointIndex(const base::string16& s, size_t index);
|
D | utf16_indexing_unittest.cc | 16 EXPECT_EQ(i != the_invalid_index, IsValidCodePointIndex(s, i)); in TEST()
|
D | render_text_win.cc | 744 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()
|
D | render_text_pango.cc | 270 if (!gfx::IsValidCodePointIndex(text(), position)) in IsCursorablePosition()
|