Home
last modified time | relevance | path

Searched refs:code_unit_size (Results 1 – 3 of 3) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c1110 lit_utf8_size_t code_unit_size = lit_get_unicode_char_size_by_utf8_first_byte (*end_p); in ecma_substring_copy_to_cesu8_buffer() local
1112 if ((size + code_unit_size) > buffer_size) in ecma_substring_copy_to_cesu8_buffer()
1117 end_p += code_unit_size; in ecma_substring_copy_to_cesu8_buffer()
1118 size += code_unit_size; in ecma_substring_copy_to_cesu8_buffer()
1186 lit_utf8_size_t code_unit_size = lit_read_code_unit_from_utf8 (cesu8_str_p, &ch); in ecma_substring_copy_to_utf8_buffer() local
1188 cesu8_str_p += code_unit_size; in ecma_substring_copy_to_utf8_buffer()
1195 JERRY_ASSERT (code_unit_size == next_ch_size); in ecma_substring_copy_to_utf8_buffer()
1196 cesu8_str_p += code_unit_size; in ecma_substring_copy_to_utf8_buffer()
1209 lit_utf8_size_t code_unit_size = lit_read_code_unit_from_utf8 (cesu8_pos, &ch); in ecma_substring_copy_to_utf8_buffer() local
1211 if ((size + code_unit_size) > buffer_size) in ecma_substring_copy_to_utf8_buffer()
[all …]
/third_party/jerryscript/jerry-core/lit/
Dlit-strings.c830 lit_utf8_size_t code_unit_size = lit_read_code_unit_from_utf8 (cesu8_pos, &ch); in lit_convert_cesu8_string_to_utf8_string() local
834 JERRY_ASSERT (code_unit_size == prev_ch_size); in lit_convert_cesu8_string_to_utf8_string()
842 memcpy (utf8_pos, cesu8_pos, code_unit_size); in lit_convert_cesu8_string_to_utf8_string()
843 size += code_unit_size; in lit_convert_cesu8_string_to_utf8_string()
847 cesu8_pos += code_unit_size; in lit_convert_cesu8_string_to_utf8_string()
849 prev_ch_size = code_unit_size; in lit_convert_cesu8_string_to_utf8_string()
/third_party/pcre2/pcre2/src/
Dpcre2test.c922 static int code_unit_size; /* Bytes */ variable
4299 (int)(size - name_count*name_entry_size*code_unit_size - cblock_size)); in show_memory_info()
4592 nametable = (void*)((PCRE2_SPTR8)nametable + nameentrysize * code_unit_size); in show_pattern_info()
5665 converted_pattern = malloc(converted_length * code_unit_size); in process_pattern()
6388 length = sizeof(copybuffer)/code_unit_size; in copy_and_get()
6443 length = sizeof(copybuffer)/code_unit_size; in copy_and_get()
6716 needlen = (size_t)((len+1) * code_unit_size); in process_data()
6794 SETPLUS(q, replen/code_unit_size); in process_data()
7001 ulen = len/code_unit_size; /* Length in code units */ in process_data()
7060 c = code_unit_size * (((pat_patctl.control & CTL_POSIX) + in process_data()
[all …]