Lines Matching refs:utf8

242         (const char utf8[], int utf8Units, BreakType type, std::function<void(int, int)> setBreak) {
245 ICUUText text(sk_utext_openUTF8(nullptr, &utf8[0], utf8Units, &status));
279 const char* end = utf8 + utf8Units;
280 const char* ch = utf8;
284 setBreak(ch - utf8, UBRK_LINE_HARD);
291 static bool isControl(SkUnichar utf8) {
292 return sk_u_iscntrl(utf8);
295 static bool isWhitespace(SkUnichar utf8) {
296 return sk_u_isWhitespace(utf8);
299 static bool isSpace(SkUnichar utf8) {
300 return sk_u_isspace(utf8);
303 static bool isTabulation(SkUnichar utf8) {
304 return utf8 == '\t';
307 static bool isHardBreak(SkUnichar utf8) {
308 auto property = sk_u_getIntPropertyValue(utf8, UCHAR_LINE_BREAK);
342 static bool isHardLineBreak(SkUnichar utf8) {
343 auto property = sk_u_getIntPropertyValue(utf8, UCHAR_LINE_BREAK);
365 // ... and back to utf8 'cause that's what we want.
369 bool getBidiRegions(const char utf8[],
373 return SkUnicode::extractBidi(utf8, utf8Units, dir, results);
376 bool getWords(const char utf8[], int utf8Units, const char* locale, std::vector<Position>* results) override {
379 auto utf16 = convertUtf8ToUtf16(utf8, utf8Units);
383 bool computeCodeUnitFlags(char utf8[], int utf8Units, bool replaceTabs,
388 SkUnicode_icu::extractPositions(utf8, utf8Units, BreakType::kLines, [&](int pos,
395 SkUnicode_icu::extractPositions(utf8, utf8Units, BreakType::kGraphemes, [&](int pos,
400 const char* current = utf8;
401 const char* end = utf8 + utf8Units;
403 auto before = current - utf8;
406 auto after = current - utf8;
411 utf8[before] = ' ';