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; |