Index: src/i18n.h |
diff --git a/src/i18n.h b/src/i18n.h |
index 37c57b135bfb3626112044eb207d8221fbb51cbb..b9cbed1bbe8c3843b2a688d746beb4e8366bc1fe 100644 |
--- a/src/i18n.h |
+++ b/src/i18n.h |
@@ -33,6 +33,7 @@ |
#include "v8.h" |
namespace U_ICU_NAMESPACE { |
+class DecimalFormat; |
class SimpleDateFormat; |
} |
@@ -51,6 +52,7 @@ class I18N { |
I18N(); |
}; |
+ |
class DateFormat { |
public: |
// Create a formatter for the specificied locale and options. Returns the |
@@ -74,6 +76,30 @@ class DateFormat { |
DateFormat(); |
}; |
+ |
+class NumberFormat { |
+ public: |
+ // Create a formatter for the specificied locale and options. Returns the |
+ // resolved settings for the locale / options. |
+ static icu::DecimalFormat* InitializeNumberFormat( |
+ Isolate* isolate, |
+ Handle<String> locale, |
+ Handle<JSObject> options, |
+ Handle<JSObject> resolved); |
+ |
+ // Unpacks number format object from corresponding JavaScript object. |
+ static icu::DecimalFormat* UnpackNumberFormat(Isolate* isolate, |
+ Handle<JSObject> obj); |
+ |
+ // Release memory we allocated for the NumberFormat once the JS object that |
+ // holds the pointer gets garbage collected. |
+ static void DeleteNumberFormat(v8::Isolate* isolate, |
+ Persistent<v8::Object>* object, |
+ void* param); |
+ private: |
+ NumberFormat(); |
+}; |
+ |
} } // namespace v8::internal |
#endif // V8_I18N_H_ |