Lines Matching refs:utf8Bytes

134     static SkTLazy<BiDiRunIterator> Make(const char* utf8, size_t utf8Bytes, UBiDiLevel level) {  in Make()  argument
139 if (!SkTFitsIn<int32_t>(utf8Bytes)) { in Make()
148 u_strFromUTF8(nullptr, 0, &utf16Units, utf8, utf8Bytes, &status); in Make()
151 u_strFromUTF8(utf16.get(), utf16Units, nullptr, utf8, utf8Bytes, &status); in Make()
172 ret.init(utf8, utf8 + utf8Bytes, std::move(bidi)); in Make()
218 static SkTLazy<ScriptRunIterator> Make(const char* utf8, size_t utf8Bytes, in Make() argument
222 ret.init(utf8, utf8Bytes, hbUnicode); in Make()
225 ScriptRunIterator(const char* utf8, size_t utf8Bytes, hb_unicode_funcs_t* hbUnicode) in ScriptRunIterator() argument
226 : fCurrent(utf8), fEnd(fCurrent + utf8Bytes) in ScriptRunIterator()
272 static SkTLazy<FontRunIterator> Make(const char* utf8, size_t utf8Bytes, in Make() argument
278 ret.init(utf8, utf8Bytes, std::move(typeface), hbFace, std::move(fallbackMgr)); in Make()
281 FontRunIterator(const char* utf8, size_t utf8Bytes, sk_sp<SkTypeface> typeface, in FontRunIterator() argument
283 : fCurrent(utf8), fEnd(fCurrent + utf8Bytes) in FontRunIterator()
542 size_t utf8Bytes, in shape() argument
555 SkTLazy<BiDiRunIterator> maybeBidi(BiDiRunIterator::Make(utf8, utf8Bytes, defaultLevel)); in shape()
563 SkTLazy<ScriptRunIterator> maybeScript(ScriptRunIterator::Make(utf8, utf8Bytes, hbUnicode)); in shape()
570 SkTLazy<FontRunIterator> maybeFont(FontRunIterator::Make(utf8, utf8Bytes, in shape()
584 utext_openUTF8(&utf8UText, utf8, utf8Bytes, &status); in shape()
621 hb_buffer_add_utf8(buffer, utf8Current, utf8 + utf8Bytes - utf8Current, 0, 0); in shape()