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

Unified Diff: source/i18n/sharednumberformat.h

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 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 | « source/i18n/sharedbreakiterator.cpp ('k') | source/i18n/sharedpluralrules.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/sharednumberformat.h
diff --git a/source/i18n/sharednumberformat.h b/source/i18n/sharednumberformat.h
new file mode 100644
index 0000000000000000000000000000000000000000..b6f5a8c923f36a987c6a8e76e1e69cc34b87705a
--- /dev/null
+++ b/source/i18n/sharednumberformat.h
@@ -0,0 +1,34 @@
+/*
+******************************************************************************
+* Copyright (C) 2014, International Business Machines
+* Corporation and others. All Rights Reserved.
+******************************************************************************
+* sharednumberformat.h
+*/
+
+#ifndef __SHARED_NUMBERFORMAT_H__
+#define __SHARED_NUMBERFORMAT_H__
+
+#include "unicode/utypes.h"
+#include "sharedobject.h"
+
+U_NAMESPACE_BEGIN
+
+class NumberFormat;
+
+class U_I18N_API SharedNumberFormat : public SharedObject {
+public:
+ SharedNumberFormat(NumberFormat *nfToAdopt) : ptr(nfToAdopt) { }
+ virtual ~SharedNumberFormat();
+ const NumberFormat *get() const { return ptr; }
+ const NumberFormat *operator->() const { return ptr; }
+ const NumberFormat &operator*() const { return *ptr; }
+private:
+ NumberFormat *ptr;
+ SharedNumberFormat(const SharedNumberFormat &);
+ SharedNumberFormat &operator=(const SharedNumberFormat &);
+};
+
+U_NAMESPACE_END
+
+#endif
« no previous file with comments | « source/i18n/sharedbreakiterator.cpp ('k') | source/i18n/sharedpluralrules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698