Home
last modified time | relevance | path

Searched refs:char_size (Results 1 – 23 of 23) sorted by relevance

/external/libcxx/src/support/win32/
Dsupport.cpp72 …size_t char_size = mbrtowc( dst ? dst + dest_converted : NULL, *src + source_converted, source_rem… in mbsnrtowcs() local
74 if ( char_size > 0 ) { in mbsnrtowcs()
75 source_remaining -= char_size; in mbsnrtowcs()
76 source_converted += char_size; in mbsnrtowcs()
80 result = char_size; in mbsnrtowcs()
112 size_t char_size = 0; in wcsnrtombs() local
123 result = wcrtomb_s( &char_size, dst + dest_converted, dest_remaining, c, ps); in wcsnrtombs()
125 result = wcrtomb_s( &char_size, NULL, 0, c, ps); in wcsnrtombs()
136 dest_remaining -= char_size; in wcsnrtombs()
137 dest_converted += char_size; in wcsnrtombs()
/external/v8/src/regexp/ppc/
Dregexp-macro-assembler-ppc.cc150 if (is_int16(by * char_size())) { in AdvanceCurrentPosition()
152 Operand(by * char_size())); in AdvanceCurrentPosition()
154 __ mov(r0, Operand(by * char_size())); in AdvanceCurrentPosition()
218 Operand(-char_size() + cp_offset * char_size())); in CheckAtStart()
227 Operand(-char_size() + cp_offset * char_size())); in CheckNotAtStart()
295 __ addi(r3, r3, Operand(char_size())); in CheckNotBackReferenceIgnoreCase()
297 __ addi(r5, r5, Operand(char_size())); in CheckNotBackReferenceIgnoreCase()
427 __ addi(r3, r3, Operand(char_size())); in CheckNotBackReference()
429 __ addi(r5, r5, Operand(char_size())); in CheckNotBackReference()
433 __ addi(r3, r3, Operand(char_size())); in CheckNotBackReference()
[all …]
Dregexp-macro-assembler-ppc.h157 inline int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/v8/src/regexp/s390/
Dregexp-macro-assembler-s390.cc149 __ AddP(current_input_offset(), Operand(by * char_size())); in AdvanceCurrentPosition()
209 Operand(-char_size() + cp_offset * char_size())); in CheckAtStart()
218 Operand(-char_size() + cp_offset * char_size())); in CheckNotAtStart()
304 __ la(r1, MemOperand(r1, char_size())); in CheckNotBackReferenceIgnoreCase()
422 __ la(r1, MemOperand(r1, char_size())); in CheckNotBackReference()
727 __ SubP(r1, current_input_offset(), Operand(char_size())); in GetCode()
1045 __ CmpP(current_input_offset(), Operand(-by * char_size())); in SetCurrentPositionFromEnd()
1047 __ mov(current_input_offset(), Operand(-by * char_size())); in SetCurrentPositionFromEnd()
1071 __ AddP(r2, current_input_offset(), Operand(cp_offset * char_size())); in WriteCurrentPositionToRegister()
1164 __ CmpP(current_input_offset(), Operand(-cp_offset * char_size())); in CheckPosition()
[all …]
Dregexp-macro-assembler-s390.h157 inline int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/v8/src/regexp/arm/
Dregexp-macro-assembler-arm.cc142 current_input_offset(), Operand(by * char_size())); in AdvanceCurrentPosition()
203 Operand(-char_size() + cp_offset * char_size())); in CheckAtStart()
212 Operand(-char_size() + cp_offset * char_size())); in CheckNotAtStart()
275 __ ldrb(r3, MemOperand(r0, char_size(), PostIndex)); in CheckNotBackReferenceIgnoreCase()
276 __ ldrb(r4, MemOperand(r2, char_size(), PostIndex)); in CheckNotBackReferenceIgnoreCase()
404 __ ldrb(r3, MemOperand(r0, char_size(), PostIndex)); in CheckNotBackReference()
405 __ ldrb(r4, MemOperand(r2, char_size(), PostIndex)); in CheckNotBackReference()
408 __ ldrh(r3, MemOperand(r0, char_size(), PostIndex)); in CheckNotBackReference()
409 __ ldrh(r4, MemOperand(r2, char_size(), PostIndex)); in CheckNotBackReference()
709 __ sub(r0, current_input_offset(), Operand(char_size())); in GetCode()
[all …]
Dregexp-macro-assembler-arm.h164 inline int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/v8/src/regexp/mips64/
Dregexp-macro-assembler-mips64.cc180 current_input_offset(), Operand(by * char_size())); in AdvanceCurrentPosition()
240 Operand(-char_size() + cp_offset * char_size())); in CheckAtStart()
249 Operand(-char_size() + cp_offset * char_size())); in CheckNotAtStart()
313 __ daddiu(a0, a0, char_size()); in CheckNotBackReferenceIgnoreCase()
315 __ daddiu(a2, a2, char_size()); in CheckNotBackReferenceIgnoreCase()
447 __ daddiu(a0, a0, char_size()); in CheckNotBackReference()
449 __ daddiu(a2, a2, char_size()); in CheckNotBackReference()
453 __ daddiu(a0, a0, char_size()); in CheckNotBackReference()
455 __ daddiu(a2, a2, char_size()); in CheckNotBackReference()
737 __ Dsubu(a0, current_input_offset(), Operand(char_size())); in GetCode()
[all …]
Dregexp-macro-assembler-mips64.h170 inline int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/v8/src/regexp/mips/
Dregexp-macro-assembler-mips.cc144 current_input_offset(), Operand(by * char_size())); in AdvanceCurrentPosition()
204 Operand(-char_size() + cp_offset * char_size())); in CheckAtStart()
213 Operand(-char_size() + cp_offset * char_size())); in CheckNotAtStart()
277 __ addiu(a0, a0, char_size()); in CheckNotBackReferenceIgnoreCase()
279 __ addiu(a2, a2, char_size()); in CheckNotBackReferenceIgnoreCase()
417 __ addiu(a0, a0, char_size()); in CheckNotBackReference()
419 __ addiu(a2, a2, char_size()); in CheckNotBackReference()
423 __ addiu(a0, a0, char_size()); in CheckNotBackReference()
425 __ addiu(a2, a2, char_size()); in CheckNotBackReference()
702 __ Subu(a0, current_input_offset(), Operand(char_size())); in GetCode()
[all …]
Dregexp-macro-assembler-mips.h165 inline int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/pdfium/core/fpdfapi/font/
Dcpdf_cmap.cpp347 int char_size = 1; in GetNextChar() local
350 int ret = CheckFourByteCodeRange(codes, char_size, in GetNextChar()
356 for (int i = 0; i < char_size; i++) in GetNextChar()
360 if (char_size == 4 || offset == pBytes.size()) in GetNextChar()
362 codes[char_size++] = pBytes[offset++]; in GetNextChar()
Dcpdf_cmapparser.cpp177 size_t char_size = (i - 1) / 2; in GetCodeRange() local
178 if (char_size > 4) in GetCodeRange()
182 range.m_CharSize = char_size; in GetCodeRange()
/external/v8/src/regexp/x64/
Dregexp-macro-assembler-x64.cc139 __ addq(rdi, Immediate(by * char_size())); in AdvanceCurrentPosition()
195 __ leaq(rax, Operand(rdi, -char_size() + cp_offset * char_size())); in CheckAtStart()
202 __ leaq(rax, Operand(rdi, -char_size() + cp_offset * char_size())); in CheckNotAtStart()
447 __ addq(rbx, Immediate(char_size())); in CheckNotBackReference()
448 __ addq(rdx, Immediate(char_size())); in CheckNotBackReference()
778 __ leaq(rax, Operand(rdi, rbx, times_2, -char_size())); in GetCode()
780 __ leaq(rax, Operand(rdi, rbx, times_1, -char_size())); in GetCode()
1110 __ cmpq(rdi, Immediate(-by * char_size())); in SetCurrentPositionFromEnd()
1112 __ movq(rdi, Immediate(-by * char_size())); in SetCurrentPositionFromEnd()
1138 __ leaq(rax, Operand(rdi, cp_offset * char_size())); in WriteCurrentPositionToRegister()
[all …]
Dregexp-macro-assembler-x64.h185 inline int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/v8/src/regexp/ia32/
Dregexp-macro-assembler-ia32.cc130 __ add(edi, Immediate(by * char_size())); in AdvanceCurrentPosition()
186 __ lea(eax, Operand(edi, -char_size() + cp_offset * char_size())); in CheckAtStart()
193 __ lea(eax, Operand(edi, -char_size() + cp_offset * char_size())); in CheckNotAtStart()
422 __ add(edx, Immediate(char_size())); in CheckNotBackReference()
423 __ add(ebx, Immediate(char_size())); in CheckNotBackReference()
743 __ lea(eax, Operand(edi, ebx, times_2, -char_size())); in GetCode()
745 __ lea(eax, Operand(edi, ebx, times_1, -char_size())); in GetCode()
1043 __ cmp(edi, -by * char_size()); in SetCurrentPositionFromEnd()
1045 __ mov(edi, -by * char_size()); in SetCurrentPositionFromEnd()
1071 __ lea(eax, Operand(edi, cp_offset * char_size())); in WriteCurrentPositionToRegister()
[all …]
Dregexp-macro-assembler-ia32.h149 inline int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/v8/src/regexp/arm64/
Dregexp-macro-assembler-arm64.cc156 current_input_offset(), by * char_size()); in AdvanceCurrentPosition()
242 Operand(-char_size() + cp_offset * char_size())); in CheckAtStart()
250 Operand(-char_size() + cp_offset * char_size())); in CheckNotAtStart()
278 __ Add(characters_address, characters_address, cp_offset * char_size()); in CheckCharacters()
831 __ Sub(string_start_minus_one(), current_input_offset(), char_size()); in GetCode()
1221 __ Cmp(current_input_offset(), -by * char_size()); in SetCurrentPositionFromEnd()
1223 __ Mov(current_input_offset(), -by * char_size()); in SetCurrentPositionFromEnd()
1254 __ Add(position, current_input_offset(), cp_offset * char_size()); in WriteCurrentPositionToRegister()
1361 -cp_offset * char_size(), ge, on_outside_input); in CheckPosition()
1363 __ Add(w12, current_input_offset(), Operand(cp_offset * char_size())); in CheckPosition()
[all …]
Dregexp-macro-assembler-arm64.h194 int char_size() { return static_cast<int>(mode_); } in char_size() function
/external/pdfium/xfa/fde/
Dcfde_texteditengine.cpp180 static const size_t char_size = sizeof(WideString::CharType); in AdjustGap() local
185 (gap_position_ - idx) * char_size); in AdjustGap()
190 (idx - gap_position_) * char_size); in AdjustGap()
201 (text_length_ - gap_position_) * char_size); in AdjustGap()
355 static const size_t char_size = sizeof(WideString::CharType); in Insert() local
356 memcpy(content_.data() + gap_position_, text.c_str(), length * char_size); in Insert()
/external/python/cpython3/Objects/
Dunicodeobject.c964 Py_ssize_t char_size; in resize_compact() local
977 char_size = PyUnicode_KIND(unicode); in resize_compact()
984 if (length > ((PY_SSIZE_T_MAX - struct_size) / char_size - 1)) { in resize_compact()
988 new_size = (struct_size + (length + 1) * char_size); in resize_compact()
1037 Py_ssize_t char_size; in resize_inplace() local
1045 char_size = PyUnicode_KIND(unicode); in resize_inplace()
1049 if (length > (PY_SSIZE_T_MAX / char_size - 1)) { in resize_inplace()
1053 new_size = (length + 1) * char_size; in resize_inplace()
1312 Py_ssize_t char_size; in PyUnicode_New() local
1326 char_size = 1; in PyUnicode_New()
[all …]
/external/python/cpython3/Lib/test/
Dtest_unicode.py2312 char_size = 1 # sizeof(Py_UCS1)
2315 char_size = 2 # sizeof(Py_UCS2)
2318 char_size = 4 # sizeof(Py_UCS4)
2323 maxlen = ((sys.maxsize - struct_size) // char_size)
/external/pdfium/core/fpdftext/
Dcpdf_textpage.cpp1363 float char_size = in IsSameTextObject() local
1367 return fabs(diff.x) <= 0.9 * char_size * font_size / 1000 && in IsSameTextObject()