Searched refs:code_unit (Results 1 – 4 of 4) sorted by relevance
372 INLINE(void AddChar(char code_unit)) { in INLINE() argument373 DCHECK(IsValidAscii(code_unit)); in INLINE()374 AddOneByteChar(static_cast<byte>(code_unit)); in INLINE()377 INLINE(void AddChar(uc32 code_unit)) { in INLINE() argument379 code_unit <= static_cast<uc32>(unibrow::Latin1::kMaxChar)) { in INLINE()380 AddOneByteChar(static_cast<byte>(code_unit)); in INLINE()382 AddCharSlow(code_unit); in INLINE()426 inline bool IsValidAscii(char code_unit) { in IsValidAscii() argument431 return iscntrl(code_unit) || isprint(code_unit); in IsValidAscii()441 void AddCharSlow(uc32 code_unit);
106 void Scanner::LiteralBuffer::AddCharSlow(uc32 code_unit) { in AddCharSlow() argument109 if (code_unit <= static_cast<uc32>(unibrow::Latin1::kMaxChar)) { in AddCharSlow()110 backing_store_[position_] = static_cast<byte>(code_unit); in AddCharSlow()116 if (code_unit <= in AddCharSlow()118 *reinterpret_cast<uint16_t*>(&backing_store_[position_]) = code_unit; in AddCharSlow()122 unibrow::Utf16::LeadSurrogate(code_unit); in AddCharSlow()126 unibrow::Utf16::TrailSurrogate(code_unit); in AddCharSlow()
544 uint8_t code_unit; in UTF8ToUTF16() local545 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 …]
714 static void push_code_unit(ZoneVector<uc16>* v, uint32_t code_unit) { in push_code_unit() argument715 if (code_unit <= unibrow::Utf16::kMaxNonSurrogateCharCode) { in push_code_unit()716 v->push_back(code_unit); in push_code_unit()718 v->push_back(unibrow::Utf16::LeadSurrogate(code_unit)); in push_code_unit()719 v->push_back(unibrow::Utf16::TrailSurrogate(code_unit)); in push_code_unit()