Searched refs:LIT_CHAR_0 (Results 1 – 13 of 13) sorted by relevance
304 lit_code_point_t upper_limit = LIT_CHAR_0 + radix; in ecma_utf8_string_to_number_by_radix()310 if (*iter_p >= LIT_CHAR_0 && *iter_p < upper_limit) in ecma_utf8_string_to_number_by_radix()312 digit_value = (*iter_p - LIT_CHAR_0); in ecma_utf8_string_to_number_by_radix()330 if (*iter_p >= LIT_CHAR_0 in ecma_utf8_string_to_number_by_radix()333 digit_value = (*iter_p - LIT_CHAR_0); in ecma_utf8_string_to_number_by_radix()385 && str_p[0] == LIT_CHAR_0) in ecma_utf8_string_to_number()446 if (*str_p >= LIT_CHAR_0 in ecma_utf8_string_to_number()450 digit_value = (*str_p - LIT_CHAR_0); in ecma_utf8_string_to_number()488 if (*str_p >= LIT_CHAR_0 in ecma_utf8_string_to_number()492 digit_value = (*str_p - LIT_CHAR_0); in ecma_utf8_string_to_number()[all …]
803 && (current == LIT_CHAR_0)) in ecma_number_parse_int()831 current_number = current_char - LIT_CHAR_0; in ecma_number_parse_int()874 current_number = (ecma_number_t) current_char - LIT_CHAR_0; in ecma_number_parse_int()
68 JERRY_ASSERT (string_size > 0 && *string_p >= LIT_CHAR_0 && *string_p <= LIT_CHAR_9); in ecma_string_to_array_index()70 if (*string_p == LIT_CHAR_0) in ecma_string_to_array_index()91 if (*string_p > LIT_CHAR_9 || *string_p < LIT_CHAR_0) in ecma_string_to_array_index()96 index = (index * 10) + (uint32_t) (*string_p++ - LIT_CHAR_0); in ecma_string_to_array_index()109 || *string_p < LIT_CHAR_0 in ecma_string_to_array_index()116 *result_p = (index * 10) + (uint32_t) (*string_p - LIT_CHAR_0); in ecma_string_to_array_index()310 if (*string_p >= LIT_CHAR_0 && *string_p <= LIT_CHAR_9) in ecma_find_special_string()
73 if (byte >= LIT_CHAR_0 && byte <= LIT_CHAR_9) in lexer_hex_to_code_point()75 result += byte - LIT_CHAR_0; in lexer_hex_to_code_point()120 if (byte >= LIT_CHAR_0 && byte <= LIT_CHAR_9) in lexer_hex_in_braces_to_code_point()122 result += byte - LIT_CHAR_0; in lexer_hex_in_braces_to_code_point()177 if (byte >= LIT_CHAR_0 && byte <= LIT_CHAR_9) in lexer_unchecked_hex_to_character()179 result += byte - LIT_CHAR_0; in lexer_unchecked_hex_to_character()1012 if (*source_p == LIT_CHAR_0 in lexer_parse_string()1014 && (*(source_p + 1) < LIT_CHAR_0 || *(source_p + 1) > LIT_CHAR_9)) in lexer_parse_string()1024 if (*source_p >= LIT_CHAR_0 && *source_p <= LIT_CHAR_3) in lexer_parse_string()1034 if (source_p < source_end_p && *source_p >= LIT_CHAR_0 && *source_p <= LIT_CHAR_7) in lexer_parse_string()[all …]
174 #define LIT_CHAR_0 ((ecma_char_t) '0') macro202 #define LIT_CHAR_ASCII_OCTAL_DIGITS_BEGIN LIT_CHAR_0 /* octal digits range */205 #define LIT_CHAR_ASCII_DIGITS_BEGIN LIT_CHAR_0 /* decimal digits range */
247 || (code_point >= LIT_CHAR_0 && code_point <= LIT_CHAR_9) in lit_code_point_is_identifier_part()310 return (c == LIT_CHAR_0 || c == LIT_CHAR_1); in lit_char_is_binary_digit()480 uint32_t value = (uint32_t) (*current_p++ - LIT_CHAR_0); in lit_parse_decimal()484 const uint32_t digit = (uint32_t) (*current_p++ - LIT_CHAR_0); in lit_parse_decimal()
41 if (byte >= LIT_CHAR_0 && byte <= LIT_CHAR_9) in lexer_hex_to_character()43 result += byte - LIT_CHAR_0; in lexer_hex_to_character()
200 uint32_t value = (uint32_t) (*re_ctx_p->input_curr_p++) - LIT_CHAR_0; in re_parse_octal()205 value = value * 8 + (*re_ctx_p->input_curr_p++) - LIT_CHAR_0; in re_parse_octal()211 const uint32_t new_value = value * 8 + (*re_ctx_p->input_curr_p) - LIT_CHAR_0; in re_parse_octal()439 if (*re_ctx_p->input_curr_p == LIT_CHAR_0 in re_parse_char_escape()716 if (*re_ctx_p->input_curr_p > LIT_CHAR_0 && *re_ctx_p->input_curr_p <= LIT_CHAR_9) in re_parse_next_token()
234 if (*current_p == LIT_CHAR_0) in ecma_builtin_json_parse_number()833 ecma_stringbuilder_append_byte (builder_p, LIT_CHAR_0); in ecma_builtin_json_quote()834 ecma_stringbuilder_append_byte (builder_p, LIT_CHAR_0); in ecma_builtin_json_quote()837 ecma_stringbuilder_append_byte (builder_p, (lit_utf8_byte_t) (LIT_CHAR_0 + (c >> 4))); in ecma_builtin_json_quote()842 ? LIT_CHAR_0 in ecma_builtin_json_quote()
951 uint8_t idx = (uint8_t) (c - LIT_CHAR_0); in ecma_builtin_replace_substitute()954 uint8_t two_digit_index = (uint8_t) (idx * 10 + (uint8_t) (*(curr_p) - LIT_CHAR_0)); in ecma_builtin_replace_substitute()
770 *buffer_p = (lit_utf8_byte_t) ((number % 10) + (int32_t) LIT_CHAR_0); in ecma_date_to_string_format()
119 parsed_year = 10 * parsed_year + *str_start_p - LIT_CHAR_0; in ecma_date_parse_year()
475 return (cp >= LIT_CHAR_0 && cp <= LIT_CHAR_9); in ecma_regexp_check_class_escape()479 return (cp < LIT_CHAR_0 || cp > LIT_CHAR_9); in ecma_regexp_check_class_escape()