Home
last modified time | relevance | path

Searched refs:token_length (Results 1 – 18 of 18) sorted by relevance

/external/cpuinfo/src/x86/
Dname.c135 const size_t token_length = (size_t) (token_end - token_start); in is_frequency() local
136 if (token_length > 3 && token_end[-2] == 'H' && token_end[-1] == 'z') { in is_frequency()
151 const size_t token_length = (size_t) (token_end - token_start); in move_token() local
152 memmove(output_ptr, token_start, token_length); in move_token()
153 return output_ptr + token_length; in move_token()
160 size_t token_length = (size_t) (token_end - token_start); in transform_token() local
165 memset(token_start, ' ', token_length); in transform_token()
175 if (token_length > 2) { in transform_token()
180 token_length -= 2; in transform_token()
184 if (token_length > 4) { in transform_token()
[all …]
/external/image_io/src/base/
Ddata_scanner.cc110 size_t token_length = token_range_.GetLength(); in ScanLiteral() local
111 if (token_length >= literal_or_sentinels_.length()) { in ScanLiteral()
115 size_t bytes_still_needed = literal_or_sentinels_.length() - token_length; in ScanLiteral()
117 if (strncmp(&literal_or_sentinels_[token_length], cbytes, bytes_to_compare) == in ScanLiteral()
119 token_length = ExtendTokenLength(bytes_to_compare); in ScanLiteral()
121 result.SetType(token_length == literal_or_sentinels_.length() in ScanLiteral()
134 size_t token_length = token_range_.GetLength(); in ScanName() local
135 if (token_length == 0) { in ScanName()
140 token_length = ExtendTokenLength(1); in ScanName()
147 token_length = ExtendTokenLength(optional_bytes_consumed); in ScanName()
[all …]
/external/libtextclassifier/native/annotator/number/
Dnumber.cc66 const int token_length) const { in IsCJTterm()
68 std::advance(token_end_it, token_length); in IsCJTterm()
94 const int token_length = in TokensAreValidNumberPrefix() local
96 if (token_length == 1 && unilib_->IsOpeningBracket(*prefix_begin_it) && in TokensAreValidNumberPrefix()
100 if (token_length == 1 && unilib_->IsNumberSign(*prefix_begin_it) && in TokensAreValidNumberPrefix()
104 if (token_length == 1 && unilib_->IsSlash(*prefix_begin_it) && in TokensAreValidNumberPrefix()
113 if (IsCJTterm(prefix_begin_it, token_length)) { in TokensAreValidNumberPrefix()
159 const int token_length = in TokensAreValidNumberSuffix() local
161 if (token_length == 1 && unilib_->IsSlash(*suffix_begin_it) && in TokensAreValidNumberSuffix()
171 if (IsCJTterm(suffix_begin_it, token_length)) { in TokensAreValidNumberSuffix()
Dnumber.h108 int token_length) const;
/external/mtools/
Dconfig.c33 static size_t token_length; /* length of the token */ variable
325 token_length = 0; in get_next_token()
330 token_length = strcspn(token, " \t\n#:="); in get_next_token()
331 pos += token_length; in get_next_token()
337 return (strlen(template) == token_length && in match_token()
338 !cmp_tok(template, token, token_length)); in match_token()
721 if(token_length != 1) in parse_one()
741 if(token_nr == 1 && token_length == 1) { in parse_one()
/external/boringssl/src/crypto/trust_token/
Dtrust_token_test.cc718 size_t token_length = in TEST_P() local
721 token_length += 4; in TEST_P()
724 token_length = 1 + 2 * BN_num_bytes(&group->field); in TEST_P()
728 token_length)); in TEST_P()
729 ASSERT_TRUE(CBS_skip(&real_response, token_length)); in TEST_P()
781 size_t token_length = in TEST_P() local
784 token_length += 4; in TEST_P()
787 token_length = 1 + 2 * BN_num_bytes(&group->field); in TEST_P()
791 token_length)); in TEST_P()
792 ASSERT_TRUE(CBS_skip(&real_response, token_length)); in TEST_P()
/external/libtextclassifier/native/utils/
Dtokenizer.cc247 const int token_length = unicode_index - last_unicode_index; in ICUTokenize() local
248 if (token_length + last_unicode_index > context_unicode_size) { in ICUTokenize()
253 std::advance(token_end_it, token_length); in ICUTokenize()
/external/wpa_supplicant_8/src/wps/
Dwps_upnp_ssdp.c61 static int token_length(const char *s) in token_length() function
540 data += token_length(data); in ssdp_parse_msearch()
562 data += token_length(data); in ssdp_parse_msearch()
612 data += token_length(data); in ssdp_parse_msearch()
626 data += token_length(data); in ssdp_parse_msearch()
/external/deqp/external/openglcts/modules/common/
DglcTextureFilterAnisotropicTests.cpp63 const size_t token_length = strlen(token); in replaceToken() local
68 str.replace(token_position, token_length, text, text_length); in replaceToken()
/external/deqp/external/openglcts/modules/gl/
Dgl3cGPUShader5Tests.cpp316 const size_t token_length = strlen(token); in replaceToken() local
319 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cStencilTexturingTests.cpp379 const size_t token_length = strlen(token); in replaceToken() local
392 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cSparseTexture2Tests.cpp270 const size_t token_length = strlen(token); in replaceToken() local
275 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cGlSpirvTests.cpp121 const size_t token_length = strlen(token); in replaceToken() local
126 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl3cTextureSwizzleTests.cpp2157 const size_t token_length = strlen(token); in replaceToken() local
2160 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cMultiBindTests.cpp1600 const size_t token_length = strlen(token); in replaceToken() local
1603 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cShadingLanguage420PackTests.cpp1413 const size_t token_length = strlen(token); in replaceToken() local
1416 string.replace(token_position, token_length, text, text_length); in replaceToken()
1430 const size_t token_length = strlen(token); in replaceAllTokens() local
1445 string.replace(token_position, token_length, text, text_length); in replaceAllTokens()
Dgl4cEnhancedLayoutsTests.cpp1582 const size_t token_length = strlen(token); in replaceToken() local
1595 string.replace(token_position, token_length, text, text_length); in replaceToken()
1609 const size_t token_length = strlen(token); in replaceAllTokens() local
1624 string.replace(token_position, token_length, text, text_length); in replaceAllTokens()
Dgl4cGPUShaderFP64Tests.cpp1570 const size_t token_length = strlen(token); in replaceToken() local
1573 string.replace(token_position, token_length, text, text_length); in replaceToken()