• Home
  • Raw
  • Download

Lines Matching refs:uchar

35 template <class T, int s> bool Predicate<T, s>::get(uchar code_point) {  in get()
42 uchar code_point) { in CalculateValue()
48 template <class T, int s> int Mapping<T, s>::get(uchar c, uchar n, in get()
49 uchar* result) { in get()
63 template <class T, int s> int Mapping<T, s>::CalculateValue(uchar c, uchar n, in CalculateValue()
64 uchar* result) { in CalculateValue()
81 unsigned Utf8::Encode(char* str, uchar c, int previous) { in Encode()
112 uchar Utf8::ValueOf(const byte* bytes, unsigned length, unsigned* cursor) { in ValueOf()
123 unsigned Utf8::Length(uchar c, int previous) { in Length()
139 uchar CharacterStream::GetNext() { in GetNext()
140 uchar result = DecodeCharacter(buffer_, &cursor_); in GetNext()
160 bool CharacterStream::EncodeAsciiCharacter(uchar c, byte* buffer, in EncodeAsciiCharacter()
168 bool CharacterStream::EncodeNonAsciiCharacter(uchar c, byte* buffer, in EncodeNonAsciiCharacter()
171 if ((aligned + sizeof(uchar)) > capacity) in EncodeNonAsciiCharacter()
174 IF_LITTLE(*reinterpret_cast<uchar*>(buffer + aligned) = (c << 8) | 0x80); in EncodeNonAsciiCharacter()
175 IF_BIG(*reinterpret_cast<uchar*>(buffer + aligned) = c | (1 << 31)); in EncodeNonAsciiCharacter()
178 IF_LITTLE(*reinterpret_cast<uchar*>(buffer + aligned) = c << 8); in EncodeNonAsciiCharacter()
179 IF_BIG(*reinterpret_cast<uchar*>(buffer + aligned) = c); in EncodeNonAsciiCharacter()
181 offset = aligned + sizeof(uchar); in EncodeNonAsciiCharacter()
185 bool CharacterStream::EncodeCharacter(uchar c, byte* buffer, unsigned capacity, in EncodeCharacter()
194 uchar CharacterStream::DecodeCharacter(const byte* buffer, unsigned* offset) { in DecodeCharacter()
201 *offset = aligned + sizeof(uchar); in DecodeCharacter()
202 IF_LITTLE(return *reinterpret_cast<const uchar*>(buffer + aligned) >> 8); in DecodeCharacter()
203 IF_BIG(return *reinterpret_cast<const uchar*>(buffer + aligned) & in DecodeCharacter()