Home
last modified time | relevance | path

Searched refs:IsTrailByte (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/native/utils/strings/
Dutf8.cc37 while (IsTrailByte(str[truncate_at]) && (truncate_at > 0)) { in SafeTruncateLength()
44 TC3_DCHECK(!IsTrailByte(str[0]) && GetNumBytesForUTF8Char(str) > 0); in ValidCharToRune()
73 if (IsTrailByte(str[0])) { in IsValidChar()
84 if (!IsTrailByte(str[k])) { in IsValidChar()
Dutf8.h35 static inline bool IsTrailByte(char x) { in IsTrailByte() function
/external/tensorflow/tensorflow/core/kernels/
Dstring_util.h32 inline bool IsTrailByte(char x) { return static_cast<signed char>(x) < -0x40; } in IsTrailByte() function
58 } while (IsTrailByte(in[*pos]) && *pos < size); in ForwardNUTF8CharPositions()
79 } while (IsTrailByte(in[*pos]) && *pos > start); in BackNUTF8CharPositions()
Dstring_util.cc58 skipped_count += IsTrailByte(*ptr++) ? 1 : 0; in UTF8StrLen()
/external/libtextclassifier/native/utils/utf8/
Dunicodetext.cc313 while (IsTrailByte(*--it_)) { in operator --()