Lines Matching refs:args

29   jerry_value_t args[2] = {a, b};
30 jerry_value_t res = jerry_call_function (is_equal_fn_val, jerry_create_undefined (), args, 2);
69 jerry_value_t args[2];
75 args[0] = jerry_create_string ((jerry_char_t *) "");
76 sz = jerry_get_string_size (args[0]);
78 jerry_release_value (args[0]);
83 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x73\x74\x72\x3a \xf0\x90\x90\x80");
84 args[1] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x81\xed\xb0\x80");
87 utf8_sz = jerry_get_string_size (args[0]);
88 cesu8_sz = jerry_get_string_size (args[1]);
93 jerry_string_to_char_buffer (args[0], (jerry_char_t *) string_from_utf8, utf8_sz);
94 jerry_string_to_char_buffer (args[1], (jerry_char_t *) string_from_cesu8, cesu8_sz);
99 jerry_release_value (args[0]);
100 jerry_release_value (args[1]);
103 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x73\x74\x72\x3a \xf0\x90\x90\x80");
104 args[1] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x81\xed\xb0\x80");
107 TEST_ASSERT (strict_equals (args[0], args[1]));
110 utf8_sz = jerry_get_utf8_string_size (args[0]);
111 cesu8_sz = jerry_get_utf8_string_size (args[1]);
118 jerry_string_to_utf8_char_buffer (args[0], (jerry_char_t *) string_from_utf8_string, utf8_sz);
119 jerry_string_to_utf8_char_buffer (args[1], (jerry_char_t *) string_from_cesu8_string, cesu8_sz);
122 jerry_release_value (args[0]);
123 jerry_release_value (args[1]);
126 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x73\x74\x72\x3a \xf0\x9d\x94\xa3 \xf0\x9d\x94\xa4");
128 cesu8_length = jerry_get_string_length (args[0]);
129 utf8_length = jerry_get_utf8_string_length (args[0]);
131 cesu8_sz = jerry_get_string_size (args[0]);
132 utf8_sz = jerry_get_utf8_string_size (args[0]);
140 TEST_ASSERT (jerry_string_to_utf8_char_buffer (args[0], (jerry_char_t *) test_string, utf8_sz) == 14);
143 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, utf8_sz);
147 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length + 1, (jerry_char_t *) test_string, utf8_sz);
151 sz = jerry_substring_to_utf8_char_buffer (args[0], utf8_length, 0, (jerry_char_t *) test_string, utf8_sz);
154 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length, (jerry_char_t *) test_string, utf8_sz - 1);
158 sz = jerry_substring_to_utf8_char_buffer (args[0], 0, utf8_length - 1, (jerry_char_t *) test_string, utf8_sz);
162 sz = jerry_substring_to_utf8_char_buffer (args[0],
170 sz = jerry_substring_to_utf8_char_buffer (args[0],
178 jerry_release_value (args[0]);
181 args[0] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x81\xed\xb0\x80");
183 cesu8_length = jerry_get_string_length (args[0]);
184 utf8_length = jerry_get_utf8_string_length (args[0]);
186 cesu8_sz = jerry_get_string_size (args[0]);
187 utf8_sz = jerry_get_utf8_string_size (args[0]);
193 jerry_release_value (args[0]);
196 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x70\x72\x69\x63\x65\x3a \x31\x30\xe2\x82\xac");
198 cesu8_length = jerry_get_string_length (args[0]);
199 utf8_length = jerry_get_utf8_string_length (args[0]);
201 cesu8_sz = jerry_get_string_size (args[0]);
202 utf8_sz = jerry_get_utf8_string_size (args[0]);
208 jerry_release_value (args[0]);
235 args[0] = jerry_create_string ((jerry_char_t *) "an ascii string");
241 sz = jerry_substring_to_char_buffer (args[0], 3, 8, (jerry_char_t *) substring, cesu8_sz);
246 sz = jerry_substring_to_char_buffer (args[0], 0, 11, (jerry_char_t *) substring, cesu8_sz);
252 sz = jerry_substring_to_char_buffer (args[0], 16, 21, (jerry_char_t *) substring, cesu8_sz);
255 sz = jerry_substring_to_char_buffer (args[0], 14, 15, (jerry_char_t *) substring, cesu8_sz);
259 sz = jerry_substring_to_char_buffer (args[0], 0, 1, (jerry_char_t *) substring, cesu8_sz);
263 cesu8_length = jerry_get_string_length (args[0]);
264 cesu8_sz = jerry_get_string_size (args[0]);
269 sz = jerry_substring_to_char_buffer (args[0], 0, cesu8_length, (jerry_char_t *) fullstring, cesu8_sz);
273 jerry_release_value (args[0]);
276 args[0] = jerry_create_string ((jerry_char_t *) "0101");
277 cesu8_sz = jerry_get_string_size (args[0]);
281 sz = jerry_substring_to_char_buffer (args[0], 1, 3, (jerry_char_t *) number_substring, cesu8_sz);
285 jerry_release_value (args[0]);
288 args[0] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x80\xed\xb6\x8a");
289 cesu8_sz = jerry_get_string_size (args[0]);
290 cesu8_length = jerry_get_string_length (args[0]);
296 sz = jerry_substring_to_char_buffer (args[0], 0, cesu8_length, (jerry_char_t *) supl_substring, cesu8_sz);
302 sz = jerry_substring_to_char_buffer (args[0], 0, cesu8_length, (jerry_char_t *) supl_substring, cesu8_sz);
306 sz = jerry_substring_to_char_buffer (args[0],
314 sz = jerry_substring_to_char_buffer (args[0],
322 jerry_release_value (args[0]);