Home
last modified time | relevance | path

Searched refs:char_length (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/native/utils/sentencepiece/
Dnormalizer.cc127 const int char_length = ValidUTF8CharLength(input.data(), input.size()); in NormalizePrefix() local
128 if (char_length <= 0) { in NormalizePrefix()
137 prefix->first = StringPiece(input.data(), char_length); in NormalizePrefix()
138 prefix->second = char_length; in NormalizePrefix()
/external/libtextclassifier/native/utils/strings/
Dutf8.cc24 const int char_length = ValidUTF8CharLength(src + i, size - i); in IsValidUTF8() local
25 if (char_length <= 0) { in IsValidUTF8()
28 i += char_length; in IsValidUTF8()
/external/v8/src/builtins/
Dbuiltins-string.cc267 int char_length = mapping->get(current, next, chars); in ConvertCaseHelper() local
268 if (char_length == 0) { in ConvertCaseHelper()
272 } else if (char_length == 1 && in ConvertCaseHelper()
297 int current_length = i + char_length + next_length; in ConvertCaseHelper()
305 int char_length = mapping->get(current, 0, chars); in ConvertCaseHelper() local
306 if (char_length == 0) char_length = 1; in ConvertCaseHelper()
307 current_length += char_length; in ConvertCaseHelper()
319 for (int j = 0; j < char_length; j++) { in ConvertCaseHelper()
/external/tensorflow/tensorflow/core/kernels/
Dunicode_ops.cc376 SPLITS_TYPE* next_row_split, UChar32 char_value, int char_length, in Decode() argument
386 *current_offset += char_length; in Decode()
399 *current_offset += char_length; in Decode()
/external/v8/src/regexp/
Dregexp-macro-assembler.cc261 int char_length = subject_ptr.length() - start_offset; in Match() local
286 int byte_length = char_length << char_size_shift; in Match()
/external/v8/src/compiler/
Djs-call-reducer.cc6293 Node* char_length = graph()->NewNode(simplified()->StringLength(), vtrue0); in ReduceStringIteratorPrototypeNext() local
6294 index = graph()->NewNode(simplified()->NumberAdd(), index, char_length); in ReduceStringIteratorPrototypeNext()