Lines Matching refs:utf8Bytes
342 static SkTLazy<BiDiRunIterator> Make(const char* utf8, size_t utf8Bytes, UBiDiLevel level) { in Make() argument
347 if (!SkTFitsIn<int32_t>(utf8Bytes)) { in Make()
356 u_strFromUTF8(nullptr, 0, &utf16Units, utf8, utf8Bytes, &status); in Make()
359 u_strFromUTF8(utf16.get(), utf16Units, nullptr, utf8, utf8Bytes, &status); in Make()
380 ret.init(utf8, utf8 + utf8Bytes, std::move(bidi)); in Make()
426 static SkTLazy<ScriptRunIterator> Make(const char* utf8, size_t utf8Bytes, in Make() argument
430 ret.init(utf8, utf8Bytes, hbUnicode); in Make()
433 ScriptRunIterator(const char* utf8, size_t utf8Bytes, hb_unicode_funcs_t* hbUnicode) in ScriptRunIterator() argument
434 : fCurrent(utf8), fEnd(fCurrent + utf8Bytes) in ScriptRunIterator()
480 static SkTLazy<FontRunIterator> Make(const char* utf8, size_t utf8Bytes, in Make() argument
491 ret.init(utf8, utf8Bytes, std::move(font), std::move(hbFont), std::move(fallbackMgr)); in Make()
494 FontRunIterator(const char* utf8, size_t utf8Bytes, SkFont font, in FontRunIterator() argument
496 : fCurrent(utf8), fEnd(fCurrent + utf8Bytes) in FontRunIterator()
578 static SkTLazy<LanguageRunIterator> Make(const char* utf8, size_t utf8Bytes) { in Make() argument
580 ret.init(utf8, utf8Bytes); in Make()
583 LanguageRunIterator(const char* utf8, size_t utf8Bytes) in LanguageRunIterator() argument
584 : fCurrent(utf8), fEnd(fCurrent + utf8Bytes) in LanguageRunIterator()
822 size_t utf8Bytes,
833 size_t utf8Bytes,
843 size_t utf8Bytes,
891 size_t utf8Bytes, in shape() argument
902 SkTLazy<BiDiRunIterator> maybeBidi(BiDiRunIterator::Make(utf8, utf8Bytes, defaultLevel)); in shape()
909 SkTLazy<LanguageRunIterator> maybeLanguage(LanguageRunIterator::Make(utf8, utf8Bytes)); in shape()
917 SkTLazy<ScriptRunIterator> maybeScript(ScriptRunIterator::Make(utf8, utf8Bytes, hbUnicode)); in shape()
924 SkTLazy<FontRunIterator> maybeFont(FontRunIterator::Make(utf8, utf8Bytes, in shape()
933 return shapeCorrect(handler, utf8, utf8Bytes, point, width, in shape()
936 return shapeOk(handler, utf8, utf8Bytes, point, width, in shape()
943 size_t utf8Bytes, in shapeCorrect() argument
977 model = shape(utf8, utf8Bytes, in shapeCorrect()
1037 : shape(utf8, utf8Bytes, in shapeCorrect()
1098 size_t utf8Bytes, in shapeOk() argument
1114 utext_openUTF8(&utf8UText, utf8, utf8Bytes, &status); in shapeOk()
1139 runs.emplace_back(shape(utf8, utf8Bytes, in shapeOk()
1321 const size_t utf8Bytes, in shape() argument
1351 hb_buffer_add_utf8(buffer, utf8Current, utf8 + utf8Bytes - utf8Current, 0, 0); in shape()