Home
last modified time | relevance | path

Searched refs:ecma_char_t (Results 1 – 22 of 22) sorted by relevance

/third_party/jerryscript/jerry-core/lit/
Dlit-char-helpers.h24 #define LIT_CHAR_ZWNJ ((ecma_char_t) 0x200C) /* zero width non-joiner */
25 #define LIT_CHAR_ZWJ ((ecma_char_t) 0x200D) /* zero width joiner */
26 #define LIT_CHAR_BOM ((ecma_char_t) 0xFEFF) /* byte order mark */
31 #define LIT_CHAR_TAB ((ecma_char_t) 0x0009) /* tab */
32 #define LIT_CHAR_VTAB ((ecma_char_t) 0x000B) /* vertical tab */
33 #define LIT_CHAR_FF ((ecma_char_t) 0x000C) /* form feed */
34 #define LIT_CHAR_SP ((ecma_char_t) 0x0020) /* space */
35 #define LIT_CHAR_NBSP ((ecma_char_t) 0x00A0) /* no-break space */
43 #define LIT_CHAR_LF ((ecma_char_t) 0x000A) /* line feed */
44 #define LIT_CHAR_CR ((ecma_char_t) 0x000D) /* carriage return */
[all …]
Dlit-char-helpers.c35 search_char_in_char_array (ecma_char_t c, /**< code unit */ in search_char_in_char_array()
36 const ecma_char_t *array, /**< array */ in search_char_in_char_array()
45 ecma_char_t current = array[middle]; in search_char_in_char_array()
74 search_char_in_interval_array (ecma_char_t c, /**< code unit */ in search_char_in_interval_array()
75 … const ecma_char_t *array_sp, /**< array of interval starting points */ in search_char_in_interval_array()
85 ecma_char_t current_sp = array_sp[middle]; in search_char_in_interval_array()
129 || search_char_in_char_array ((ecma_char_t) c, in lit_char_is_white_space()
142 lit_char_is_line_terminator (ecma_char_t c) /**< code unit */ in lit_char_is_line_terminator()
169 lit_char_is_unicode_letter (ecma_char_t c) /**< code unit */ in lit_char_is_unicode_letter()
193 lit_char_is_unicode_non_letter_ident_part (ecma_char_t c) /**< code unit */ in lit_char_is_unicode_non_letter_ident_part()
[all …]
Dlit-strings.c218 static ecma_char_t
223 ecma_char_t code_unit_bits; in convert_code_point_to_low_surrogate()
224 code_unit_bits = (ecma_char_t) (code_point & LIT_UTF16_LAST_10_BITS_MASK); in convert_code_point_to_low_surrogate()
226 return (ecma_char_t) (LIT_UTF16_LOW_SURROGATE_MARKER | code_unit_bits); in convert_code_point_to_low_surrogate()
234 static ecma_char_t
240 ecma_char_t code_unit_bits; in convert_code_point_to_high_surrogate()
241 …code_unit_bits = (ecma_char_t) ((code_point - LIT_UTF16_FIRST_SURROGATE_CODE_POINT) >> LIT_UTF16_B… in convert_code_point_to_high_surrogate()
256 ecma_char_t *cu_p) /**< result of the encoding */ in lit_utf16_encode_code_point()
260 cu_p[0] = (ecma_char_t) cp; in lit_utf16_encode_code_point()
319 ecma_char_t prev_ch = 0; in lit_get_utf8_size_of_cesu8_string()
[all …]
Dlit-strings.h108 ecma_char_t lit_utf8_string_code_unit_at (const lit_utf8_byte_t *utf8_buf_p, lit_utf8_size_t utf8_b…
113 lit_utf8_size_t lit_code_unit_to_utf8 (ecma_char_t code_unit, lit_utf8_byte_t *buf_p);
120 lit_code_point_t lit_convert_surrogate_pair_to_code_point (ecma_char_t high_surrogate, ecma_char_t
125 uint8_t lit_utf16_encode_code_point (lit_code_point_t cp, ecma_char_t *cu_p);
132 ecma_char_t *code_point);
135 ecma_char_t *code_point);
137 ecma_char_t lit_cesu8_read_next (const lit_utf8_byte_t **buf_p);
138 ecma_char_t lit_cesu8_read_prev (const lit_utf8_byte_t **buf_p);
139 ecma_char_t lit_cesu8_peek_next (const lit_utf8_byte_t *buf_p);
140 ecma_char_t lit_cesu8_peek_prev (const lit_utf8_byte_t *buf_p);
Dlit-globals.h74 typedef uint16_t ecma_char_t; typedef
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-global.c232 ecma_char_t decoded_byte = (ecma_char_t) hex_value; in ecma_builtin_global_object_decode_uri_helper()
286 ecma_char_t decoded_byte = (ecma_char_t) hex_value; in ecma_builtin_global_object_decode_uri_helper()
402 ecma_char_t hex_digit = (ecma_char_t) (byte >> 4); in ecma_builtin_global_object_byte_to_hex()
434 ecma_char_t ch; in ecma_builtin_global_object_encode_uri_helper()
457 ecma_char_t next_ch; in ecma_builtin_global_object_encode_uri_helper()
507 ecma_char_t next_ch; in ecma_builtin_global_object_encode_uri_helper()
601 ecma_char_t chr = lit_cesu8_read_next (&input_curr_p); in ecma_builtin_global_object_escape()
636 ecma_char_t chr = lit_cesu8_read_next (&input_curr_p); in ecma_builtin_global_object_escape()
717 ecma_char_t hex_digits = 0; in ecma_builtin_global_object_unescape()
722 ecma_char_t chr = lit_cesu8_read_next (&input_curr_p); in ecma_builtin_global_object_unescape()
[all …]
Decma-builtin-string-iterator-prototype.c102 ecma_char_t first = ecma_string_get_char_at_pos (string_p, position); in ecma_builtin_string_iterator_prototype_object_next()
116 ecma_char_t second = ecma_string_get_char_at_pos (string_p, (ecma_length_t) (position + 1)); in ecma_builtin_string_iterator_prototype_object_next()
Decma-builtin-string-prototype.c190ecma_char_t new_ecma_char = ecma_string_get_char_at_pos (original_string_p, ecma_number_to_uint32 … in ecma_builtin_string_prototype_char_at_helper()
1022 ecma_char_t character = lit_cesu8_read_next (&input_str_curr_p); in ecma_builtin_string_prototype_object_conversion_helper()
1023 ecma_char_t character_buffer[LIT_MAXIMUM_OTHER_CASE_LENGTH]; in ecma_builtin_string_prototype_object_conversion_helper()
1061 ecma_char_t character = lit_cesu8_read_next (&input_str_curr_p); in ecma_builtin_string_prototype_object_conversion_helper()
1062 ecma_char_t character_buffer[LIT_MAXIMUM_OTHER_CASE_LENGTH]; in ecma_builtin_string_prototype_object_conversion_helper()
1211 ecma_char_t first = ecma_string_get_char_at_pos (this_string_p, index); in ecma_builtin_string_prototype_object_code_point_at()
1220 ecma_char_t second = ecma_string_get_char_at_pos (this_string_p, index + 1); in ecma_builtin_string_prototype_object_code_point_at()
Decma-builtin-string.c89 ecma_char_t code_unit = (uint16_t) uint32_char_code; in ecma_builtin_string_object_from_char_code()
322 ecma_char_t converted_cp[2]; in ecma_builtin_string_object_from_code_point()
Decma-builtin-regexp-prototype.c156 ecma_char_t c = lit_cesu8_read_next (&pattern_str_curr_p); in ecma_op_escape_regexp_pattern()
Decma-builtin-helpers.c714 ecma_char_t first_char = lit_cesu8_read_next (&search_str_curr_p); in ecma_builtin_helper_string_find_index()
Decma-builtin-json.c183 ecma_stringbuilder_append_char (&result_builder, (ecma_char_t) hex_value); in ecma_builtin_json_parse_string()
/third_party/jerryscript/jerry-core/parser/regexp/
Dre-bytecode.c279 …ze_t size = (re_ctx_p->flags & RE_FLAG_UNICODE) ? sizeof (lit_code_point_t) : sizeof (ecma_char_t); in re_append_char()
282 const size_t size = sizeof (ecma_char_t); in re_append_char()
296 re_encode_u16 (dest_p, (ecma_char_t) cp); in re_append_char()
308 …ze_t size = (re_ctx_p->flags & RE_FLAG_UNICODE) ? sizeof (lit_code_point_t) : sizeof (ecma_char_t); in re_insert_char()
311 const size_t size = sizeof (ecma_char_t); in re_insert_char()
325 re_encode_u16 (dest_p, (ecma_char_t) cp); in re_insert_char()
351 *bc_p += sizeof (ecma_char_t); in re_get_char()
Dre-parser.c602 …re_ctx_p->token.value = lit_convert_surrogate_pair_to_code_point ((ecma_char_t) re_ctx_p->token.va… in re_parse_char_escape()
603 … (ecma_char_t) hex_value); in re_parse_char_escape()
683 ecma_char_t ch = lit_cesu8_read_next (&re_ctx_p->input_curr_p); in re_parse_next_token()
871 const ecma_char_t next = lit_cesu8_peek_next (re_ctx_p->input_curr_p); in re_parse_next_token()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c452 ecma_new_ecma_string_from_code_unit (ecma_char_t code_unit) /**< code unit */ in ecma_new_ecma_string_from_code_unit()
468 ecma_new_ecma_string_from_code_units (ecma_char_t first_code_unit, /**< code unit */ in ecma_new_ecma_string_from_code_units()
469 ecma_char_t second_code_unit) /**< code unit */ in ecma_new_ecma_string_from_code_units()
1185 ecma_char_t ch; in ecma_substring_copy_to_utf8_buffer()
1191 ecma_char_t next_ch; in ecma_substring_copy_to_utf8_buffer()
1208 ecma_char_t ch; in ecma_substring_copy_to_utf8_buffer()
1218 ecma_char_t next_ch; in ecma_substring_copy_to_utf8_buffer()
2143 static ecma_char_t JERRY_ATTR_NOINLINE
2154 return (ecma_char_t) data_p[index]; in ecma_external_string_get_char_at_pos()
2165 ecma_char_t
[all …]
Decma-helpers-number.c750 ecma_char_t current = lit_cesu8_read_next (&string_curr_p); in ecma_number_parse_int()
805 ecma_char_t next = *string_curr_p; in ecma_number_parse_int()
818 ecma_char_t current_char = *string_curr_p++; in ecma_number_parse_int()
860 ecma_char_t current_char = *(--string_curr_p); in ecma_number_parse_int()
919 ecma_char_t current; in ecma_number_parse_float()
Decma-helpers.h297 ecma_string_t *ecma_new_ecma_string_from_code_unit (ecma_char_t code_unit);
299 ecma_string_t *ecma_new_ecma_string_from_code_units (ecma_char_t first_code_unit, ecma_char_t secon…
362 ecma_char_t ecma_string_get_char_at_pos (const ecma_string_t *string_p, ecma_length_t index);
384 void ecma_stringbuilder_append_char (ecma_stringbuilder_t *builder_p, const ecma_char_t c);
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-regexp-object.c410 return (ecma_char_t) (ch - (LIT_CHAR_LOWERCASE_A - LIT_CHAR_UPPERCASE_A)); in ecma_regexp_canonicalize_char()
424 ecma_char_t u[LIT_MAXIMUM_OTHER_CASE_LENGTH]; in ecma_regexp_canonicalize_char()
425 …const ecma_length_t size = lit_char_to_upper_case ((ecma_char_t) ch, u, LIT_MAXIMUM_OTHER_CASE_LEN… in ecma_regexp_canonicalize_char()
432 const ecma_char_t cu = u[0]; in ecma_regexp_canonicalize_char()
491 return lit_char_is_white_space ((ecma_char_t) cp); in ecma_regexp_check_class_escape()
495 return !lit_char_is_white_space ((ecma_char_t) cp); in ecma_regexp_check_class_escape()
519 && lit_is_code_point_utf16_high_surrogate ((ecma_char_t) cp) in ecma_regexp_advance()
522 const ecma_char_t next_ch = lit_cesu8_peek_next (*str_p); in ecma_regexp_advance()
525 cp = lit_convert_surrogate_pair_to_code_point ((ecma_char_t) cp, next_ch); in ecma_regexp_advance()
548 if (lit_is_code_point_utf16_high_surrogate ((ecma_char_t) ch) in ecma_regexp_unicode_advance()
[all …]
Decma-get-put-value.c157 ecma_char_t char_at_idx = ecma_string_get_char_at_pos (string_p, index); in ecma_op_get_value_object_base()
Decma-objects.c122 ecma_char_t char_at_idx = ecma_string_get_char_at_pos (prim_value_str_p, index); in ecma_op_object_get_own_property()
484 ecma_char_t char_at_idx = ecma_string_get_char_at_pos (prim_value_str_p, index); in ecma_op_object_find_own()
/third_party/jerryscript/jerry-core/api/
Djerry-snapshot.c1678 ecma_char_t hex_digit = (ecma_char_t) (byte >> 4); in jerry_get_literals_from_snapshot()
/third_party/jerryscript/jerry-core/parser/js/
Djs-lexer.c713 code_point = lit_convert_surrogate_pair_to_code_point ((ecma_char_t) code_point, in lexer_parse_identifier()
714 (ecma_char_t) low_surrogate); in lexer_parse_identifier()