Index: src/i18n.h |
diff --git a/src/i18n.h b/src/i18n.h |
index b9cbed1bbe8c3843b2a688d746beb4e8366bc1fe..5825ab6c6c783652fa8872bba47d93d4f5d5e8ae 100644 |
--- a/src/i18n.h |
+++ b/src/i18n.h |
@@ -33,6 +33,7 @@ |
#include "v8.h" |
namespace U_ICU_NAMESPACE { |
+class Collator; |
class DecimalFormat; |
class SimpleDateFormat; |
} |
@@ -100,6 +101,29 @@ class NumberFormat { |
NumberFormat(); |
}; |
+ |
+class Collator { |
+ public: |
+ // Create a collator for the specificied locale and options. Returns the |
+ // resolved settings for the locale / options. |
+ static icu::Collator* InitializeCollator( |
+ Isolate* isolate, |
+ Handle<String> locale, |
+ Handle<JSObject> options, |
+ Handle<JSObject> resolved); |
+ |
+ // Unpacks collator object from corresponding JavaScript object. |
+ static icu::Collator* UnpackCollator(Isolate* isolate, Handle<JSObject> obj); |
+ |
+ // Release memory we allocated for the Collator once the JS object that holds |
+ // the pointer gets garbage collected. |
+ static void DeleteCollator(v8::Isolate* isolate, |
+ Persistent<v8::Object>* object, |
+ void* param); |
+ private: |
+ Collator(); |
+}; |
+ |
} } // namespace v8::internal |
#endif // V8_I18N_H_ |