| Index: third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h
|
| diff --git a/third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h b/third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h
|
| index f7a7d6a7ece9444a68933211eace3143794c46e1..4f83d38e44cab80790bf65707cc6626a6cfa268c 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h
|
| +++ b/third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h
|
| @@ -31,50 +31,47 @@
|
|
|
| namespace WTF {
|
|
|
| -template<size_t size> struct UCharByteFiller;
|
| -template<> struct UCharByteFiller<4> {
|
| - static void copy(LChar* destination, const uint8_t* source)
|
| - {
|
| - memcpy(destination, source, 4);
|
| - }
|
| +template <size_t size>
|
| +struct UCharByteFiller;
|
| +template <>
|
| +struct UCharByteFiller<4> {
|
| + static void copy(LChar* destination, const uint8_t* source) {
|
| + memcpy(destination, source, 4);
|
| + }
|
|
|
| - static void copy(UChar* destination, const uint8_t* source)
|
| - {
|
| - destination[0] = source[0];
|
| - destination[1] = source[1];
|
| - destination[2] = source[2];
|
| - destination[3] = source[3];
|
| - }
|
| + static void copy(UChar* destination, const uint8_t* source) {
|
| + destination[0] = source[0];
|
| + destination[1] = source[1];
|
| + destination[2] = source[2];
|
| + destination[3] = source[3];
|
| + }
|
| };
|
| -template<> struct UCharByteFiller<8> {
|
| - static void copy(LChar* destination, const uint8_t* source)
|
| - {
|
| - memcpy(destination, source, 8);
|
| - }
|
| +template <>
|
| +struct UCharByteFiller<8> {
|
| + static void copy(LChar* destination, const uint8_t* source) {
|
| + memcpy(destination, source, 8);
|
| + }
|
|
|
| - static void copy(UChar* destination, const uint8_t* source)
|
| - {
|
| - destination[0] = source[0];
|
| - destination[1] = source[1];
|
| - destination[2] = source[2];
|
| - destination[3] = source[3];
|
| - destination[4] = source[4];
|
| - destination[5] = source[5];
|
| - destination[6] = source[6];
|
| - destination[7] = source[7];
|
| - }
|
| + static void copy(UChar* destination, const uint8_t* source) {
|
| + destination[0] = source[0];
|
| + destination[1] = source[1];
|
| + destination[2] = source[2];
|
| + destination[3] = source[3];
|
| + destination[4] = source[4];
|
| + destination[5] = source[5];
|
| + destination[6] = source[6];
|
| + destination[7] = source[7];
|
| + }
|
| };
|
|
|
| -inline void copyASCIIMachineWord(LChar* destination, const uint8_t* source)
|
| -{
|
| - UCharByteFiller<sizeof(WTF::MachineWord)>::copy(destination, source);
|
| +inline void copyASCIIMachineWord(LChar* destination, const uint8_t* source) {
|
| + UCharByteFiller<sizeof(WTF::MachineWord)>::copy(destination, source);
|
| }
|
|
|
| -inline void copyASCIIMachineWord(UChar* destination, const uint8_t* source)
|
| -{
|
| - UCharByteFiller<sizeof(WTF::MachineWord)>::copy(destination, source);
|
| +inline void copyASCIIMachineWord(UChar* destination, const uint8_t* source) {
|
| + UCharByteFiller<sizeof(WTF::MachineWord)>::copy(destination, source);
|
| }
|
|
|
| -} // namespace WTF
|
| +} // namespace WTF
|
|
|
| -#endif // TextCodecASCIIFastPath_h
|
| +#endif // TextCodecASCIIFastPath_h
|
|
|