/third_party/jerryscript/tests/unit-core/ |
H A D | test-api-strings.cpp | 68 jerry_length_t cesu8_length, utf8_length; in HWTEST_F() local 129 utf8_length = jerry_get_utf8_string_length (args[0]); in HWTEST_F() 134 TEST_ASSERT (cesu8_length == 10 && utf8_length == 8); in HWTEST_F() 143 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, utf8_sz); in HWTEST_F() 147 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length + 1, (jerry_char_t *) test_string, utf8_sz); in HWTEST_F() 151 sz = jerry_substring_to_utf8_char_buffer (args[0], utf8_length, 0, (jerry_char_t *) test_string, utf8_sz); in HWTEST_F() 154 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, utf8_sz - 1); in HWTEST_F() 158 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length - 1, (jerry_char_t *) test_string, utf8_sz); in HWTEST_F() 163 utf8_length - 2, in HWTEST_F() 164 utf8_length in HWTEST_F() [all...] |
/third_party/node/src/inspector/ |
H A D | node_string.cc | 75 size_t utf8_length = in StringViewToUtf8() local 77 // We have that utf8_length == expected_utf8_length if and only in StringViewToUtf8() 78 // if the input was a valid UTF-16 string. Otherwise, utf8_length in StringViewToUtf8() 80 CHECK(utf8_length == 0 || utf8_length == expected_utf8_length); in StringViewToUtf8() 82 return String(buffer.out(), utf8_length); in StringViewToUtf8() 130 size_t utf8_length = in fromUTF16() local 132 // We have that utf8_length == expected_utf8_length if and only in fromUTF16() 133 // if the input was a valid UTF-16 string. Otherwise, utf8_length in fromUTF16() 135 CHECK(utf8_length in fromUTF16() [all...] |
/third_party/node/deps/openssl/openssl/crypto/x509/ |
H A D | v3_ncons.c | 315 int utf8_length; 339 * we must use for 'utf8_length'. 341 if ((utf8_length = ASN1_STRING_to_UTF8(&utf8_value, cn)) < 0) 349 while (utf8_length > 0 && utf8_value[utf8_length - 1] == '\0') 350 --utf8_length; 353 if (memchr(utf8_value, 0, utf8_length) != NULL) { 367 for (i = 0; i < utf8_length; ++i) { 377 if (i > 0 && i < utf8_length - 1) { 399 *idlen = (size_t)utf8_length; [all...] |
/third_party/openssl/crypto/x509/ |
H A D | v3_ncons.c | 315 int utf8_length; 339 * we must use for 'utf8_length'. 341 if ((utf8_length = ASN1_STRING_to_UTF8(&utf8_value, cn)) < 0) 349 while (utf8_length > 0 && utf8_value[utf8_length - 1] == '\0') 350 --utf8_length; 353 if (memchr(utf8_value, 0, utf8_length) != NULL) { 367 for (i = 0; i < utf8_length; ++i) { 377 if (i > 0 && i < utf8_length - 1) { 399 *idlen = (size_t)utf8_length; [all...] |
/third_party/libphonenumber/cpp/src/phonenumbers/utf/ |
H A D | unicodetext.cc | 325 assert(start_pos.utf8_data() <= utf8_data() + utf8_length()); in find() 337 StringPiece searching(utf8_data(), utf8_length()); in UnsafeFind() 338 StringPiece look_piece(look.utf8_data(), look.utf8_length()); in UnsafeFind() 350 StringPiece searching(utf8_data(), utf8_length()); in HasReplacementChar() 504 int len = utf8_length(); in MakeIterator()
|
H A D | unicodetext.h | 50 // UTF-8-encoded version of the text; 'utf8_length' returns the number 286 int utf8_length() const { return repr_.size_; } in utf8_length() function in i18n::phonenumbers::UnicodeText 460 return string(t.utf8_data(), t.utf8_length()); in UnicodeTextToUTF8()
|
/third_party/jerryscript/jerry-core/lit/ |
H A D | lit-strings.c | 349 ecma_length_t utf8_length = 0; in lit_get_utf8_length_of_cesu8_string() local 359 utf8_length++; in lit_get_utf8_length_of_cesu8_string() 367 return utf8_length; in lit_get_utf8_length_of_cesu8_string()
|
/third_party/cJSON/ |
H A D | cJSON.c | 900 unsigned char utf8_length = 0; in utf16_literal_to_utf8() local 964 utf8_length = 1; in utf16_literal_to_utf8() 969 utf8_length = 2; in utf16_literal_to_utf8() 975 utf8_length = 3; in utf16_literal_to_utf8() 981 utf8_length = 4; in utf16_literal_to_utf8() 991 for (utf8_position = (unsigned char)(utf8_length - 1); utf8_position > 0; utf8_position--) in utf16_literal_to_utf8() 998 if (utf8_length > 1) in utf16_literal_to_utf8() 1007 *output_pointer += utf8_length; in utf16_literal_to_utf8()
|
/third_party/jerryscript/jerry-core/parser/js/ |
H A D | js-lexer.c | 692 lit_utf8_size_t utf8_length = 1, decoded_length = 1, char_count = 1; in lexer_parse_identifier() local 697 utf8_length = lit_read_code_point_from_utf8 (source_p, in lexer_parse_identifier() 700 decoded_length = utf8_length; in lexer_parse_identifier() 715 utf8_length = 2 * 3; in lexer_parse_identifier() 728 utf8_length = lit_read_code_point_from_utf8 (source_p, in lexer_parse_identifier() 731 decoded_length = utf8_length; in lexer_parse_identifier() 764 source_p += utf8_length; in lexer_parse_identifier()
|
/third_party/python/Include/cpython/ |
H A D | unicodeobject.h | 70 immediately follow the structure. utf8_length and wstr_length can be found 97 * utf8_length = 0 if utf8 is NULL 118 * utf8_length = 0 129 * utf8 is shared and utf8_length = length with data.any if ascii = 1 130 * utf8_length = 0 if utf8 is NULL 213 Py_ssize_t utf8_length; /* Number of bytes in utf8, excluding the member
|
/third_party/node/deps/v8/src/objects/ |
H A D | value-serializer.cc | 1567 uint32_t utf8_length; in ReadUtf8String() local 1568 if (!ReadVarint<uint32_t>().To(&utf8_length)) return {}; in ReadUtf8String() 1569 // utf8_length is checked in ReadRawBytes. in ReadUtf8String() 1571 if (!ReadRawBytes(utf8_length).To(&utf8_bytes)) return {}; in ReadUtf8String()
|
/third_party/python/Objects/ |
H A D | unicodeobject.c | 123 (_PyCompactUnicodeObject_CAST(op)->utf8_length) 553 CHECK(compact->utf8_length == ascii->length); in _PyUnicode_CheckConsistency() 575 CHECK(compact->utf8_length == 0); in _PyUnicode_CheckConsistency() 1358 printf("utf8=%p (%zu)", (void *)compact->utf8, compact->utf8_length); in _PyUnicode_Dump() 1452 unicode->utf8_length = 0; in PyUnicode_New() 1456 unicode->utf8_length = 0; in PyUnicode_New() 16127 compact->utf8_length = 0; in unicode_static_dealloc()
|