Lines Matching defs:utf16
156 char16_t utf16[], int utf16Units, bool replaceTabs,
159 static SkString convertUtf16ToUtf8(const char16_t * utf16, int utf16Units);
160 static SkString convertUtf16ToUtf8(const std::u16string& utf16);
226 void forEachCodepoint(const char16_t* utf16, int32_t utf16Units, Callback&& callback) {
227 const char16_t* current = utf16;
228 const char16_t* end = utf16 + utf16Units;
230 auto before = current - utf16;
232 auto after = current - utf16;
238 void forEachBidiRegion(const uint16_t utf16[], int utf16Units, SkBidiIterator::Direction dir, Callback&& callback) {
239 auto iter = makeBidiIterator(utf16, utf16Units, dir);
240 const uint16_t* start16 = utf16;
241 const uint16_t* end16 = utf16 + utf16Units;
250 callback(pos16, start16 - utf16, currentLevel);
262 void forEachBreak(const char16_t utf16[], int utf16Units, SkUnicode::BreakType type, Callback&& callback) {
264 iter->setText(utf16, utf16Units);