Home
last modified time | relevance | path

Searched refs:utf8_length (Results 1 – 13 of 13) sorted by relevance

/third_party/jerryscript/tests/unit-core/
Dtest-api-strings.cpp68 jerry_length_t cesu8_length, utf8_length; variable
129 utf8_length = jerry_get_utf8_string_length (args[0]);
134 TEST_ASSERT (cesu8_length == 10 && utf8_length == 8);
143 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, u…
147 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length + 1, (jerry_char_t *) test_strin…
151 …sz = jerry_substring_to_utf8_char_buffer (args[0], utf8_length, 0, (jerry_char_t *) test_string, u…
154 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, u…
158 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length - 1, (jerry_char_t *) test_strin…
163 utf8_length - 2,
164 utf8_length - 1,
[all …]
/third_party/node/src/inspector/
Dnode_string.cc75 size_t utf8_length = in StringViewToUtf8() local
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
135 CHECK(utf8_length == 0 || utf8_length == expected_utf8_length); in fromUTF16()
137 return String(buffer.out(), utf8_length); in fromUTF16()
/third_party/node/deps/openssl/openssl/crypto/x509/
Dv3_ncons.c315 int utf8_length; in cn2dnsid() local
341 if ((utf8_length = ASN1_STRING_to_UTF8(&utf8_value, cn)) < 0) in cn2dnsid()
349 while (utf8_length > 0 && utf8_value[utf8_length - 1] == '\0') in cn2dnsid()
350 --utf8_length; in cn2dnsid()
353 if (memchr(utf8_value, 0, utf8_length) != NULL) { in cn2dnsid()
367 for (i = 0; i < utf8_length; ++i) { in cn2dnsid()
377 if (i > 0 && i < utf8_length - 1) { in cn2dnsid()
399 *idlen = (size_t)utf8_length; in cn2dnsid()
/third_party/openssl/crypto/x509/
Dv3_ncons.c315 int utf8_length; in cn2dnsid() local
341 if ((utf8_length = ASN1_STRING_to_UTF8(&utf8_value, cn)) < 0) in cn2dnsid()
349 while (utf8_length > 0 && utf8_value[utf8_length - 1] == '\0') in cn2dnsid()
350 --utf8_length; in cn2dnsid()
353 if (memchr(utf8_value, 0, utf8_length) != NULL) { in cn2dnsid()
367 for (i = 0; i < utf8_length; ++i) { in cn2dnsid()
377 if (i > 0 && i < utf8_length - 1) { in cn2dnsid()
399 *idlen = (size_t)utf8_length; in cn2dnsid()
/third_party/libphonenumber/cpp/src/phonenumbers/utf/
Dunicodetext.cc325 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()
Dunicodetext.h286 int utf8_length() const { return repr_.size_; } in utf8_length() function
460 return string(t.utf8_data(), t.utf8_length()); in UnicodeTextToUTF8()
/third_party/jerryscript/jerry-core/lit/
Dlit-strings.c349 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/
DcJSON.c662 unsigned char utf8_length = 0; in utf16_literal_to_utf8() local
726 utf8_length = 1; in utf16_literal_to_utf8()
731 utf8_length = 2; in utf16_literal_to_utf8()
737 utf8_length = 3; in utf16_literal_to_utf8()
743 utf8_length = 4; in utf16_literal_to_utf8()
753 for (utf8_position = (unsigned char)(utf8_length - 1); utf8_position > 0; utf8_position--) in utf16_literal_to_utf8()
760 if (utf8_length > 1) in utf16_literal_to_utf8()
769 *output_pointer += utf8_length; in utf16_literal_to_utf8()
/third_party/jerryscript/jerry-core/parser/js/
Djs-lexer.c692 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/
Dunicodeobject.h226 Py_ssize_t utf8_length; /* Number of bytes in utf8, excluding the member
/third_party/node/deps/v8/src/objects/
Dvalue-serializer.cc1567 uint32_t utf8_length; in ReadUtf8String() local
1568 if (!ReadVarint<uint32_t>().To(&utf8_length)) return {}; in ReadUtf8String()
1571 if (!ReadRawBytes(utf8_length).To(&utf8_bytes)) return {}; in ReadUtf8String()
/third_party/python/Objects/
Dunicodeobject.c120 (((PyCompactUnicodeObject*)(op))->utf8_length)
560 CHECK(compact->utf8_length == ascii->length); in _PyUnicode_CheckConsistency()
582 CHECK(compact->utf8_length == 0); in _PyUnicode_CheckConsistency()
1377 printf("utf8=%p (%zu)", (void *)compact->utf8, compact->utf8_length); in _PyUnicode_Dump()
1490 unicode->utf8_length = 0; in PyUnicode_New()
1494 unicode->utf8_length = 0; in PyUnicode_New()
/third_party/node/deps/v8/src/api/
Dapi.cc5540 int utf8_length = 0; in Utf8Length() local
5543 utf8_length += c >> 7; in Utf8Length()
5545 utf8_length += length; in Utf8Length()
5549 utf8_length += unibrow::Utf8::Length(c, last_character); in Utf8Length()
5553 return utf8_length; in Utf8Length()