Home
last modified time | relevance | path

Searched refs:utf8_pos (Results 1 – 4 of 4) sorted by relevance

/third_party/node/deps/brotli/c/enc/
Dliteral_cost.c69 size_t utf8_pos = 0; in EstimateBitCostsForLiteralsUTF8() local
72 ++histogram[utf8_pos][c]; in EstimateBitCostsForLiteralsUTF8()
73 ++in_window_utf8[utf8_pos]; in EstimateBitCostsForLiteralsUTF8()
74 utf8_pos = UTF8Position(last_c, c, max_utf8); in EstimateBitCostsForLiteralsUTF8()
102 size_t utf8_pos = UTF8Position(last_c, c, max_utf8); in EstimateBitCostsForLiteralsUTF8() local
104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8()
109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); in EstimateBitCostsForLiteralsUTF8()
/third_party/skia/third_party/externals/brotli/c/enc/
Dliteral_cost.c69 size_t utf8_pos = 0; in EstimateBitCostsForLiteralsUTF8() local
72 ++histogram[utf8_pos][c]; in EstimateBitCostsForLiteralsUTF8()
73 ++in_window_utf8[utf8_pos]; in EstimateBitCostsForLiteralsUTF8()
74 utf8_pos = UTF8Position(last_c, c, max_utf8); in EstimateBitCostsForLiteralsUTF8()
102 size_t utf8_pos = UTF8Position(last_c, c, max_utf8); in EstimateBitCostsForLiteralsUTF8() local
104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8()
109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); in EstimateBitCostsForLiteralsUTF8()
/third_party/jerryscript/jerry-core/lit/
Dlit-strings.c819 lit_utf8_byte_t *utf8_pos = utf8_string; in lit_convert_cesu8_string_to_utf8_string() local
835 utf8_pos -= prev_ch_size; in lit_convert_cesu8_string_to_utf8_string()
837 lit_code_point_to_utf8 (code_point, utf8_pos); 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()
846 utf8_pos = utf8_string + size; in lit_convert_cesu8_string_to_utf8_string()
853 JERRY_ASSERT (utf8_pos <= utf8_end_pos); in lit_convert_cesu8_string_to_utf8_string()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c1203 lit_utf8_byte_t *utf8_pos = buffer_p; in ecma_substring_copy_to_utf8_buffer() local
1233 lit_code_point_to_utf8 (code_point, utf8_pos); in ecma_substring_copy_to_utf8_buffer()
1238 memcpy (utf8_pos, cesu8_pos, code_unit_size); in ecma_substring_copy_to_utf8_buffer()
1244 memcpy (utf8_pos, cesu8_pos, code_unit_size); in ecma_substring_copy_to_utf8_buffer()
1248 utf8_pos = buffer_p + size; in ecma_substring_copy_to_utf8_buffer()
1252 JERRY_ASSERT (utf8_pos <= utf8_end_pos); in ecma_substring_copy_to_utf8_buffer()