Lines Matching refs:Output
93 // Appends the given string to the output, escaping characters that do not
97 CanonOutput* output);
100 CanonOutput* output);
144 // Write a single character, escaped, to the output. This always escapes: it
150 CanonOutputT<OUTCHAR>* output) {
151 output->push_back('%');
152 output->push_back(kHexCharLookup[ch >> 4]);
153 output->push_back(kHexCharLookup[ch & 0xf]);
175 // character that should be appended, with the given output method. Wrappers
180 template<class Output, void Appender(unsigned char, Output*)>
181 inline void DoAppendUTF8(unsigned char_value, Output* output) {
183 Appender(static_cast<unsigned char>(char_value), output);
187 output);
189 output);
193 output);
195 output);
197 output);
201 output);
203 output);
205 output);
207 output);
217 inline void AppendCharToOutput(unsigned char ch, CanonOutput* output) {
218 output->push_back(static_cast<char>(ch));
221 // Writes the given character to the output as UTF-8. This does NO checking
224 inline void AppendUTF8Value(unsigned char_value, CanonOutput* output) {
225 DoAppendUTF8<CanonOutput, AppendCharToOutput>(char_value, output);
228 // Writes the given character to the output as UTF-8, escaping ALL
232 inline void AppendUTF8EscapedValue(unsigned char_value, CanonOutput* output) {
233 DoAppendUTF8<CanonOutput, AppendEscapedChar>(char_value, output);
251 // Equivalent to U16_APPEND_UNSAFE in ICU but uses our output method.
253 CanonOutputT<char16>* output) {
255 output->push_back(static_cast<char16>((code_point >> 10) + 0xd7c0));
256 output->push_back(static_cast<char16>((code_point & 0x3ff) | 0xdc00));
258 output->push_back(static_cast<char16>(code_point));
264 // Writes the given character to the output as UTF-8, escaped. Call this
268 // output so processing can continue.
275 // Every single output character will be escaped. This means that if you
284 CanonOutput* output) {
290 AppendUTF8EscapedValue(char_value, output);
296 CanonOutput* output) {
302 AppendUTF8EscapedValue(ch, output);
345 // Appends the given substring to the output, escaping "some" characters that
349 // This is used in error cases to append invalid output so that it looks
353 CanonOutput* output);
355 CanonOutput* output);
360 // The output will be appended to the given canonicalizer output (so make sure
363 // On invalid input, this will still write as much output as possible,
368 CanonOutput* output);
370 CanonOutputT<char16>* output);
377 CanonOutput* output);
420 CanonOutput* output);
424 CanonOutput* output);