| Index: googleurl/src/url_canon_internal.h
|
| ===================================================================
|
| --- googleurl/src/url_canon_internal.h (revision 110)
|
| +++ googleurl/src/url_canon_internal.h (working copy)
|
| @@ -143,8 +143,11 @@
|
|
|
| // Write a single character, escaped, to the output. This always escapes: it
|
| // does no checking that thee character requires escaping.
|
| -inline void AppendEscapedChar(unsigned char ch,
|
| - CanonOutput* output) {
|
| +// Escaping makes sense only 8 bit chars, so code works in all cases of
|
| +// input parameters (8/16bit).
|
| +template<typename UINCHAR, typename OUTCHAR>
|
| +inline void AppendEscapedChar(UINCHAR ch,
|
| + CanonOutputT<OUTCHAR>* output) {
|
| output->push_back('%');
|
| output->push_back(kHexCharLookup[ch >> 4]);
|
| output->push_back(kHexCharLookup[ch & 0xf]);
|
|
|