Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodec.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecICU.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodec.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecICU.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698