Chromium Code Reviews| Index: third_party/WebKit/Source/wtf/HexNumber.h |
| diff --git a/third_party/WebKit/Source/wtf/HexNumber.h b/third_party/WebKit/Source/wtf/HexNumber.h |
| index 6956430bfd413474530f8fe4fd4f764f3f09d2c4..47816f8b8af3ab2444da99953b6ac5c822f1a9af 100644 |
| --- a/third_party/WebKit/Source/wtf/HexNumber.h |
| +++ b/third_party/WebKit/Source/wtf/HexNumber.h |
| @@ -45,6 +45,15 @@ inline void appendByteAsHex(unsigned char byte, |
| destination.append(hexDigits[byte & 0xF]); |
| } |
| +template <> |
| +inline void appendByteAsHex<Vector<LChar>>(unsigned char byte, |
| + Vector<LChar>& destination, |
| + HexConversionMode mode = Uppercase) { |
|
jsbell
2017/01/12 23:35:26
This should be just `HexConversionMode mode` (i.e.
|
| + const LChar* hexDigits = Internal::hexDigitsForMode(mode); |
| + destination.push_back(hexDigits[byte >> 4]); |
| + destination.push_back(hexDigits[byte & 0xF]); |
| +} |
| + |
| template <typename T> |
| inline void appendUnsignedAsHex(unsigned number, |
| T& destination, |