Searched refs:utf8_sz (Results 1 – 3 of 3) sorted by relevance
/third_party/jerryscript/tests/unit-core/ |
D | test-api-strings.c | 40 jerry_size_t sz, utf8_sz, cesu8_sz; in main() local 60 utf8_sz = jerry_get_string_size (args[0]); in main() 63 JERRY_VLA (char, string_from_utf8, utf8_sz); in main() 66 jerry_string_to_char_buffer (args[0], (jerry_char_t *) string_from_utf8, utf8_sz); in main() 69 TEST_ASSERT (utf8_sz == cesu8_sz); in main() 71 TEST_ASSERT (!strncmp (string_from_utf8, string_from_cesu8, utf8_sz)); in main() 83 utf8_sz = jerry_get_utf8_string_size (args[0]); in main() 86 TEST_ASSERT (utf8_sz == cesu8_sz && utf8_sz > 0); in main() 88 JERRY_VLA (char, string_from_utf8_string, utf8_sz); in main() 91 jerry_string_to_utf8_char_buffer (args[0], (jerry_char_t *) string_from_utf8_string, utf8_sz); in main() [all …]
|
D | test-arraybuffer.c | 59 jerry_length_t utf8_sz = jerry_get_string_size (args_p[1]); in assert_handler() local 60 JERRY_VLA (char, string_from_utf8, utf8_sz); in assert_handler() 61 string_from_utf8[utf8_sz] = 0; in assert_handler() 63 jerry_string_to_char_buffer (args_p[1], (jerry_char_t *) string_from_utf8, utf8_sz); in assert_handler()
|
D | test-typedarray.c | 71 jerry_length_t utf8_sz = jerry_get_string_size (args_p[1]); in assert_handler() local 72 JERRY_VLA (char, string_from_utf8, utf8_sz); in assert_handler() 73 string_from_utf8[utf8_sz] = 0; in assert_handler() 75 jerry_string_to_char_buffer (args_p[1], (jerry_char_t *) string_from_utf8, utf8_sz); in assert_handler()
|