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

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

Issue 1373773002: Fix check-webkit-style errors in Source/wtf/text/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/Base64.cpp ('k') | third_party/WebKit/Source/wtf/text/StringBuilder.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/Collator.h
diff --git a/third_party/WebKit/Source/wtf/text/Collator.h b/third_party/WebKit/Source/wtf/text/Collator.h
index d3dce94dfbe4ab36618bc2bf42bb60a02f9ed0f7..17ac00e2ba96f4469e1083452d94891aa0b75dd9 100644
--- a/third_party/WebKit/Source/wtf/text/Collator.h
+++ b/third_party/WebKit/Source/wtf/text/Collator.h
@@ -39,32 +39,34 @@ struct UCollator;
namespace WTF {
- class WTF_EXPORT Collator {
- WTF_MAKE_NONCOPYABLE(Collator); WTF_MAKE_FAST_ALLOCATED(Collator);
- public:
- enum Result { Equal = 0, Greater = 1, Less = -1 };
+class WTF_EXPORT Collator {
+ WTF_MAKE_NONCOPYABLE(Collator);
+ WTF_MAKE_FAST_ALLOCATED(Collator);
+public:
+ enum Result { Equal = 0, Greater = 1, Less = -1 };
- // From ICU's uloc.h (ULOC_FULLNAME_CAPACITY)
- static const size_t ulocFullnameCapacity = 157;
+ // From ICU's uloc.h (ULOC_FULLNAME_CAPACITY)
+ static const size_t ulocFullnameCapacity = 157;
- Collator(const char* locale); // Parsing is lenient; e.g. language identifiers (such as "en-US") are accepted, too.
- ~Collator();
- void setOrderLowerFirst(bool);
+ Collator(const char* locale); // Parsing is lenient; e.g. language identifiers (such as "en-US") are accepted, too.
+ ~Collator();
+ void setOrderLowerFirst(bool);
- static PassOwnPtr<Collator> userDefault();
+ static PassOwnPtr<Collator> userDefault();
- Result collate(const ::UChar*, size_t, const ::UChar*, size_t) const;
+ Result collate(const ::UChar*, size_t, const ::UChar*, size_t) const;
- private:
- void createCollator() const;
- void releaseCollator();
- void setEquivalentLocale(const char*, char*);
- mutable UCollator* m_collator;
+private:
+ void createCollator() const;
+ void releaseCollator();
+ void setEquivalentLocale(const char*, char*);
+ mutable UCollator* m_collator;
+
+ char* m_locale;
+ char m_equivalentLocale[ulocFullnameCapacity];
+ bool m_lowerFirst;
+};
- char* m_locale;
- char m_equivalentLocale[ulocFullnameCapacity];
- bool m_lowerFirst;
- };
}
using WTF::Collator;
« no previous file with comments | « third_party/WebKit/Source/wtf/text/Base64.cpp ('k') | third_party/WebKit/Source/wtf/text/StringBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698