/third_party/jerryscript/jerry-core/ecma/base/ |
D | ecma-helpers-string.c | 64 ecma_string_to_array_index (const lit_utf8_byte_t *string_p, /**< utf-8 string */ in ecma_string_to_array_index() argument 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() 82 const lit_utf8_byte_t *string_end_p = string_p + string_size; 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() 98 while (string_p < string_end_p); in ecma_string_to_array_index() 108 if (*string_p > LIT_CHAR_9 in ecma_string_to_array_index() 109 || *string_p < LIT_CHAR_0 in ecma_string_to_array_index() 111 || (index == (UINT32_MAX / 10) && *string_p > LIT_CHAR_5)) in ecma_string_to_array_index() [all …]
|
D | ecma-literal-storage.c | 57 ecma_string_t *string_p = JMEM_CP_GET_NON_NULL_POINTER (ecma_string_t, in ecma_free_symbol_list() local 60 JERRY_ASSERT (ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)); in ecma_free_symbol_list() 61 ecma_deref_ecma_string (string_p); in ecma_free_symbol_list() 86 ecma_string_t *string_p = JMEM_CP_GET_NON_NULL_POINTER (ecma_string_t, in ecma_free_string_list() local 89 JERRY_ASSERT (ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)); in ecma_free_string_list() 90 DelJerryLiteralCache(string_p->u.hash); in ecma_free_string_list() 91 ecma_destroy_ecma_string (string_p); in ecma_free_string_list() 163 ecma_string_t *string_p = ecma_new_ecma_string_from_utf8 (chars_p, size); in ecma_find_or_create_literal_string() local 190 if (ecma_compare_ecma_strings (string_p, value_p)) in ecma_find_or_create_literal_string() 193 ecma_deref_ecma_string (string_p); in ecma_find_or_create_literal_string() [all …]
|
D | ecma-helpers.h | 287 bool ecma_prop_name_is_symbol (ecma_string_t *string_p); 292 bool ecma_prop_name_is_map_key (ecma_string_t *string_p); 294 ecma_string_t *ecma_new_ecma_string_from_utf8 (const lit_utf8_byte_t *string_p, lit_utf8_size_t str… 295 ecma_string_t *ecma_new_nonref_ecma_string_from_utf8 (const lit_utf8_byte_t *string_p, lit_utf8_siz… 296 ecma_string_t *ecma_find_special_string (const lit_utf8_byte_t *string_p, lit_utf8_size_t string_si… 298 ecma_string_t *ecma_new_ecma_string_from_utf8_converted_to_cesu8 (const lit_utf8_byte_t *string_p, 314 void ecma_ref_ecma_string (ecma_string_t *string_p); 315 void ecma_deref_ecma_string (ecma_string_t *string_p); 316 void ecma_destroy_ecma_string (ecma_string_t *string_p); 342 const lit_utf8_byte_t *ecma_string_get_chars (const ecma_string_t *string_p, [all …]
|
D | ecma-globals.h | 1453 #define ECMA_IS_DIRECT_STRING(string_p) \ argument 1454 ((((uintptr_t) (string_p)) & 0x1) != 0) 1459 #define ECMA_IS_DIRECT_STRING_WITH_TYPE(string_p, type) \ argument 1460 ((((uintptr_t) (string_p)) & ECMA_DIRECT_STRING_MASK) == ECMA_CREATE_DIRECT_STRING (type, 0)) 1465 #define ECMA_GET_DIRECT_STRING_TYPE(string_p) \ argument 1466 ((((uintptr_t) (string_p)) >> ECMA_VALUE_SHIFT) & 0x3) 1476 #define ECMA_DIRECT_STRING_TYPE_TO_PROP_NAME_TYPE(string_p) \ argument 1477 ((((uintptr_t) (string_p)) & (0x3 << ECMA_VALUE_SHIFT)) << ECMA_STRING_TYPE_CONVERSION_SHIFT) 1482 #define ECMA_GET_DIRECT_STRING_VALUE(string_p) \ argument 1483 (((uintptr_t) (string_p)) >> ECMA_DIRECT_STRING_SHIFT) [all …]
|
D | ecma-alloc.h | 74 void ecma_dealloc_string (ecma_string_t *string_p); 86 void ecma_dealloc_extended_string (ecma_extended_string_t *string_p); 98 void ecma_dealloc_string_buffer (ecma_string_t *string_p, size_t size);
|
D | ecma-alloc.c | 145 ecma_dealloc_string (ecma_string_t *string_p) /**< string to be freed */ in ecma_dealloc_string() argument 151 jmem_pools_free (string_p, sizeof (ecma_string_t)); in ecma_dealloc_string() 201 ecma_dealloc_string_buffer (ecma_string_t *string_p, /**< string with data */ in ecma_dealloc_string_buffer() argument 208 jmem_heap_free_block (string_p, size); in ecma_dealloc_string_buffer()
|
D | ecma-helpers-value.c | 1062 ecma_string_t *string_p = ecma_get_string_from_value (value); in ecma_free_value() local 1063 ecma_deref_ecma_string (string_p); in ecma_free_value()
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-string-prototype.c | 456 replace_ctx.string_p = ecma_string_get_chars (input_str_p, in ecma_builtin_string_prototype_object_replace() 475 const lit_utf8_byte_t *const input_end_p = replace_ctx.string_p + replace_ctx.string_size; in ecma_builtin_string_prototype_object_replace() 479 for (const lit_utf8_byte_t *curr_p = replace_ctx.string_p; in ecma_builtin_string_prototype_object_replace() 485 const lit_utf8_size_t byte_offset = (lit_utf8_size_t) (curr_p - replace_ctx.string_p); in ecma_builtin_string_prototype_object_replace() 486 replace_ctx.builder = ecma_stringbuilder_create_raw (replace_ctx.string_p, byte_offset); in ecma_builtin_string_prototype_object_replace() 552 jmem_heap_free_block ((void *) replace_ctx.string_p, replace_ctx.string_size); in ecma_builtin_string_prototype_object_replace() 620 ecma_string_t *string_p = ecma_op_to_string (this_value); in ecma_builtin_string_prototype_object_search() local 621 if (string_p == NULL) in ecma_builtin_string_prototype_object_search() 636 ecma_deref_ecma_string (string_p); in ecma_builtin_string_prototype_object_search() 654 result = ecma_regexp_search_helper (new_regexp, ecma_make_string_value (string_p)); in ecma_builtin_string_prototype_object_search() [all …]
|
D | ecma-builtin-symbol.c | 92 ecma_string_t *string_p; in ecma_builtin_symbol_for_helper() local 98 string_p = ecma_get_string_from_value (value_to_find); in ecma_builtin_symbol_for_helper() 102 string_p = ecma_get_symbol_from_value (value_to_find); in ecma_builtin_symbol_for_helper() 124 if (ecma_compare_ecma_strings (symbol_desc_p, string_p)) in ecma_builtin_symbol_for_helper() 128 ecma_deref_ecma_string (string_p); in ecma_builtin_symbol_for_helper() 134 if (string_p == value_p) in ecma_builtin_symbol_for_helper() 136 ecma_string_t *symbol_desc_p = ecma_get_symbol_description (string_p); in ecma_builtin_symbol_for_helper()
|
D | ecma-builtin-string-iterator-prototype.c | 80 ecma_string_t *string_p = ecma_get_string_from_value (iterated_value); in ecma_builtin_string_iterator_prototype_object_next() local 91 ecma_length_t len = ecma_string_get_length (string_p); in ecma_builtin_string_iterator_prototype_object_next() 96 ecma_deref_ecma_string (string_p); in ecma_builtin_string_iterator_prototype_object_next() 102 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()
|
D | ecma-builtins.c | 640 ecma_string_t *string_p) /**< property's name */ in ecma_builtin_routine_try_to_instantiate_property() argument 646 if (ecma_string_is_length (string_p)) in ecma_builtin_routine_try_to_instantiate_property() 665 string_p, in ecma_builtin_routine_try_to_instantiate_property() 672 string_p, in ecma_builtin_routine_try_to_instantiate_property() 698 ecma_string_t *string_p) /**< property's name */ in ecma_builtin_try_to_instantiate_property() argument 702 lit_magic_string_id_t magic_string_id = ecma_get_string_magic (string_p); in ecma_builtin_try_to_instantiate_property() 705 if (JERRY_UNLIKELY (ecma_prop_name_is_symbol (string_p))) in ecma_builtin_try_to_instantiate_property() 707 if (string_p->u.hash & ECMA_GLOBAL_SYMBOL_FLAG) in ecma_builtin_try_to_instantiate_property() 709 magic_string_id = (string_p->u.hash >> ECMA_GLOBAL_SYMBOL_SHIFT); in ecma_builtin_try_to_instantiate_property() 922 string_p, in ecma_builtin_try_to_instantiate_property() [all …]
|
D | ecma-builtin-helpers-json.c | 67 ecma_string_t *string_p) /**< string */ in ecma_has_string_value_in_collection() argument 75 if (ecma_compare_ecma_strings (current_p, string_p)) in ecma_has_string_value_in_collection()
|
D | ecma-builtins.h | 91 ecma_builtin_routine_try_to_instantiate_property (ecma_object_t *object_p, ecma_string_t *string_p); 93 ecma_builtin_try_to_instantiate_property (ecma_object_t *object_p, ecma_string_t *string_p);
|
D | ecma-builtin-json.c | 91 ecma_string_t *string_p; /**< when type is string_token it contains the string */ member 203 token_p->u.string_p = ecma_stringbuilder_finalize (&result_builder); in ecma_builtin_json_parse_string() 469 return ecma_make_string_value (token_p->u.string_p); in ecma_builtin_json_parse_value() 501 ecma_string_t *name_p = token_p->u.string_p; in ecma_builtin_json_parse_value() 774 ecma_string_t *string_p) /**< string that should be quoted */ in ecma_builtin_json_quote() argument 776 ECMA_STRING_TO_UTF8_STRING (string_p, string_buff, string_buff_size); in ecma_builtin_json_quote() 1467 ecma_string_t *string_p = ecma_get_string_from_value (item); in ecma_builtin_json_stringify() local 1469 if (!ecma_has_string_value_in_collection (context.property_list_p, string_p)) in ecma_builtin_json_stringify() 1475 ecma_deref_ecma_string (string_p); in ecma_builtin_json_stringify()
|
D | ecma-builtin-helpers.c | 845 JERRY_ASSERT (ctx_p->string_p != NULL); in ecma_builtin_replace_substitute() 847 || (ctx_p->matched_p >= ctx_p->string_p in ecma_builtin_replace_substitute() 848 && ctx_p->matched_p <= ctx_p->string_p + ctx_p->string_size)); in ecma_builtin_replace_substitute() 906 ecma_stringbuilder_append_raw (&(ctx_p->builder), ctx_p->string_p, ctx_p->match_byte_pos); in ecma_builtin_replace_substitute() 922 … const lit_utf8_byte_t *const begin_p = ctx_p->string_p + ctx_p->match_byte_pos + match_size; in ecma_builtin_replace_substitute() 926 … (lit_utf8_size_t) (ctx_p->string_p + ctx_p->string_size - begin_p)); in ecma_builtin_replace_substitute()
|
D | ecma-builtin-helpers.h | 74 const lit_utf8_byte_t *string_p; /**< source string */ member 219 bool ecma_has_string_value_in_collection (ecma_collection_t *collection_p, ecma_string_t *string_p);
|
/third_party/jerryscript/jerry-core/debugger/ |
D | debugger.c | 398 const uint8_t *string_p = str_buff; in jerry_debugger_copy_variables_to_string_message() local 402 memcpy (message_string_p->string + *buffer_pos, string_p, free_bytes); in jerry_debugger_copy_variables_to_string_message() 410 string_p += free_bytes; in jerry_debugger_copy_variables_to_string_message() 418 memcpy (message_string_p->string + *buffer_pos, string_p, str_size); in jerry_debugger_copy_variables_to_string_message() 609 const lit_utf8_byte_t *string_p = lit_get_magic_string_utf8 (id); in jerry_debugger_send_eval() local 612 string_p, in jerry_debugger_send_eval() 613 strlen ((const char *) string_p)); in jerry_debugger_send_eval() 630 ecma_string_t *string_p = ecma_get_string_from_value (message); in jerry_debugger_send_eval() local 632 ECMA_STRING_TO_UTF8_STRING (string_p, buffer_p, buffer_size); in jerry_debugger_send_eval() 751 lit_utf8_byte_t *string_p = (lit_utf8_byte_t *) (uint8_data_p + 1); in jerry_debugger_process_message() local [all …]
|
D | debugger.h | 486 bool jerry_debugger_send_string (uint8_t message_type, uint8_t sub_type, const uint8_t *string_p, s…
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-regexp-object.c | 1936 ecma_string_t *const string_p = ecma_op_to_string (string_arg); in ecma_regexp_search_helper() local 1937 if (string_p == NULL) in ecma_regexp_search_helper() 1963 const ecma_value_t match = ecma_op_regexp_exec (regexp_arg, string_p); in ecma_regexp_search_helper() 1993 ecma_deref_ecma_string (string_p); in ecma_regexp_search_helper() 2020 ecma_string_t *const string_p = ecma_op_to_string (string_arg); in ecma_regexp_split_helper() local 2021 if (string_p == NULL) in ecma_regexp_split_helper() 2132 const lit_utf8_size_t string_length = ecma_string_get_length (string_p); in ecma_regexp_split_helper() 2140 const ecma_value_t match = ecma_op_regexp_exec (splitter, string_p); in ecma_regexp_split_helper() 2151 ecma_make_string_value (string_p), in ecma_regexp_split_helper() 2184 result = ecma_op_regexp_exec (splitter, string_p); in ecma_regexp_split_helper() [all …]
|
D | ecma-get-put-value.c | 145 ecma_string_t *string_p = ecma_get_string_from_value (base_value); in ecma_op_get_value_object_base() local 149 return ecma_make_uint32_value (ecma_string_get_length (string_p)); in ecma_op_get_value_object_base() 155 && index < ecma_string_get_length (string_p)) in ecma_op_get_value_object_base() 157 ecma_char_t char_at_idx = ecma_string_get_char_at_pos (string_p, index); in ecma_op_get_value_object_base()
|
D | ecma-symbol-object.h | 36 ecma_prop_name_is_symbol (ecma_string_t *string_p);
|
/third_party/jerryscript/jerry-core/lit/ |
D | lit-magic-strings.c | 203 lit_is_utf8_string_magic (const lit_utf8_byte_t *string_p, /**< utf-8 string */ in lit_is_utf8_string_magic() argument 218 …int compare = memcmp (lit_get_magic_string_utf8 ((lit_magic_string_id_t) middle), string_p, string… in lit_is_utf8_string_magic() 296 lit_is_ex_utf8_string_magic (const lit_utf8_byte_t *string_p, /**< utf-8 string */ in lit_is_ex_utf8_string_magic() argument 318 const int string_compare = memcmp (ext_string_p, string_p, string_size); in lit_is_ex_utf8_string_magic()
|
D | lit-magic-strings.h | 95 lit_magic_string_id_t lit_is_utf8_string_magic (const lit_utf8_byte_t *string_p, lit_utf8_size_t st… 99 lit_magic_string_ex_id_t lit_is_ex_utf8_string_magic (const lit_utf8_byte_t *string_p, lit_utf8_siz…
|
/third_party/alsa-lib/src/pcm/ |
D | pcm_file.c | 118 static int snd_pcm_file_append_value(char **string_p, char **index_ch_p, in snd_pcm_file_append_value() argument 125 string = *(string_p); in snd_pcm_file_append_value() 141 *(string_p) = string; in snd_pcm_file_append_value()
|
/third_party/jerryscript/jerry-core/include/ |
D | jerryscript-core.h | 707 jerry_value_t jerry_json_parse (const jerry_char_t *string_p, jerry_size_t string_size);
|