Home | History | Annotate | Download | only in url

Lines Matching refs:char_value

160 // The char_value must have already been checked that it's a valid Unicode
163 inline void DoAppendUTF8(unsigned char_value, Output* output) {
164 if (char_value <= 0x7f) {
165 Appender(static_cast<unsigned char>(char_value), output);
166 } else if (char_value <= 0x7ff) {
168 Appender(static_cast<unsigned char>(0xC0 | (char_value >> 6)),
170 Appender(static_cast<unsigned char>(0x80 | (char_value & 0x3f)),
172 } else if (char_value <= 0xffff) {
174 Appender(static_cast<unsigned char>(0xe0 | (char_value >> 12)),
176 Appender(static_cast<unsigned char>(0x80 | ((char_value >> 6) & 0x3f)),
178 Appender(static_cast<unsigned char>(0x80 | (char_value & 0x3f)),
180 } else if (char_value <= 0x10FFFF) { // Max unicode code point.
182 Appender(static_cast<unsigned char>(0xf0 | (char_value >> 18)),
184 Appender(static_cast<unsigned char>(0x80 | ((char_value >> 12) & 0x3f)),
186 Appender(static_cast<unsigned char>(0x80 | ((char_value >> 6) & 0x3f)),
188 Appender(static_cast<unsigned char>(0x80 | (char_value & 0x3f)),
206 inline void AppendUTF8Value(unsigned char_value, CanonOutput* output) {
207 DoAppendUTF8<CanonOutput, AppendCharToOutput>(char_value, output);
214 inline void AppendUTF8EscapedValue(unsigned char_value, CanonOutput* output) {
215 DoAppendUTF8<CanonOutput, AppendEscapedChar>(char_value, output);
270 unsigned char_value;
271 bool success = ReadUTFChar(str, begin, length, &char_value);
272 AppendUTF8EscapedValue(char_value, output);