Home
last modified time | relevance | path

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

/external/v8/src/parsing/
Dscanner.h423 V8_INLINE void AddChar(char code_unit) { in AddChar() argument
425 DCHECK(IsValidAscii(code_unit)); in AddChar()
426 AddOneByteChar(static_cast<byte>(code_unit)); in AddChar()
429 V8_INLINE void AddChar(uc32 code_unit) { in AddChar() argument
432 if (code_unit <= static_cast<uc32>(unibrow::Latin1::kMaxChar)) { in AddChar()
433 AddOneByteChar(static_cast<byte>(code_unit)); in AddChar()
438 AddTwoByteChar(code_unit); in AddChar()
489 inline bool IsValidAscii(char code_unit) { in IsValidAscii() argument
494 return iscntrl(code_unit) || isprint(code_unit); in IsValidAscii()
504 void AddTwoByteChar(uc32 code_unit);
Dscanner.cc107 void Scanner::LiteralBuffer::AddTwoByteChar(uc32 code_unit) { in AddTwoByteChar() argument
110 if (code_unit <= in AddTwoByteChar()
112 *reinterpret_cast<uint16_t*>(&backing_store_[position_]) = code_unit; in AddTwoByteChar()
116 unibrow::Utf16::LeadSurrogate(code_unit); in AddTwoByteChar()
120 unibrow::Utf16::TrailSurrogate(code_unit); in AddTwoByteChar()
/external/vboot_reference/cgpt/
Dcgpt_common.c544 uint8_t code_unit; in UTF8ToUTF16() local
545 code_unit = utf8[s8idx]; in UTF8ToUTF16()
549 if ((code_unit & 0xC0) == 0x80) { in UTF8ToUTF16()
550 code_point = (code_point << 6) | (code_unit & 0x3F); in UTF8ToUTF16()
560 if (code_unit <= 0x7F) { in UTF8ToUTF16()
561 code_point = code_unit; in UTF8ToUTF16()
563 } else if (code_unit <= 0xBF) { in UTF8ToUTF16()
567 } else if (code_unit >= 0xC2 && code_unit <= 0xDF) { in UTF8ToUTF16()
568 code_point = code_unit & 0x1F; in UTF8ToUTF16()
570 } else if (code_unit >= 0xE0 && code_unit <= 0xEF) { in UTF8ToUTF16()
[all …]
/external/v8/src/regexp/
Dregexp-parser.cc813 static void push_code_unit(ZoneVector<uc16>* v, uint32_t code_unit) { in push_code_unit() argument
814 if (code_unit <= unibrow::Utf16::kMaxNonSurrogateCharCode) { in push_code_unit()
815 v->push_back(code_unit); in push_code_unit()
817 v->push_back(unibrow::Utf16::LeadSurrogate(code_unit)); in push_code_unit()
818 v->push_back(unibrow::Utf16::TrailSurrogate(code_unit)); in push_code_unit()