Home
last modified time | relevance | path

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

/third_party/jerryscript/tests/unit-core/
Dtest-api-strings.c41 jerry_length_t cesu8_length, utf8_length; in main() local
102 utf8_length = jerry_get_utf8_string_length (args[0]); in main()
107 TEST_ASSERT (cesu8_length == 10 && utf8_length == 8); in main()
116 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, u… in main()
120 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length + 1, (jerry_char_t *) test_strin… in main()
124 …sz = jerry_substring_to_utf8_char_buffer (args[0], utf8_length, 0, (jerry_char_t *) test_string, u… in main()
127 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, u… in main()
131 …sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length - 1, (jerry_char_t *) test_strin… in main()
136 utf8_length - 2, in main()
137 utf8_length - 1, in main()
[all …]
/third_party/openssl/crypto/x509v3/
Dv3_ncons.c317 int utf8_length; in cn2dnsid() local
343 if ((utf8_length = ASN1_STRING_to_UTF8(&utf8_value, cn)) < 0) in cn2dnsid()
351 while (utf8_length > 0 && utf8_value[utf8_length - 1] == '\0') in cn2dnsid()
352 --utf8_length; in cn2dnsid()
355 if (memchr(utf8_value, 0, utf8_length) != NULL) { in cn2dnsid()
369 for (i = 0; i < utf8_length; ++i) { in cn2dnsid()
379 if (i > 0 && i < utf8_length - 1) { in cn2dnsid()
401 *idlen = (size_t)utf8_length; in cn2dnsid()
/third_party/libphonenumber/cpp/src/phonenumbers/utf/
Dunicodetext.cc320 assert(start_pos.utf8_data() <= utf8_data() + utf8_length()); in find()
332 StringPiece searching(utf8_data(), utf8_length()); in UnsafeFind()
333 StringPiece look_piece(look.utf8_data(), look.utf8_length()); in UnsafeFind()
345 StringPiece searching(utf8_data(), utf8_length()); in HasReplacementChar()
499 int len = utf8_length(); in MakeIterator()
Dunicodetext.h286 int utf8_length() const { return repr_.size_; } in utf8_length() function
455 return string(t.utf8_data(), t.utf8_length()); in UnicodeTextToUTF8()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestime.c365 size_t utf8_length(unsigned char c) in utf8_length() function
382 size_t len = utf8_length(*p); in utf8_next()
500 while ((codepoint = utf8_decode(utext, len = utf8_length(*utext)))) in _Redraw()
577 while ((codepoint = utf8_decode(utext, len = utf8_length(*utext)))) in _Redraw()
/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.c651 unsigned char utf8_length = 0; in utf16_literal_to_utf8() local
715 utf8_length = 1; in utf16_literal_to_utf8()
720 utf8_length = 2; in utf16_literal_to_utf8()
726 utf8_length = 3; in utf16_literal_to_utf8()
732 utf8_length = 4; in utf16_literal_to_utf8()
742 for (utf8_position = (unsigned char)(utf8_length - 1); utf8_position > 0; utf8_position--) in utf16_literal_to_utf8()
749 if (utf8_length > 1) in utf16_literal_to_utf8()
758 *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/python/Objects/
Dunicodeobject.c114 (((PyCompactUnicodeObject*)(op))->utf8_length)
566 CHECK(compact->utf8_length == ascii->length); in _PyUnicode_CheckConsistency()
588 CHECK(compact->utf8_length == 0); in _PyUnicode_CheckConsistency()
1379 (void *)compact->utf8, compact->utf8_length); in _PyUnicode_Dump()
1474 unicode->utf8_length = 0; in PyUnicode_New()
1478 unicode->utf8_length = 0; in PyUnicode_New()