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

Unified Diff: source/common/locbased.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/common/loadednormalizer2impl.cpp ('k') | source/common/locbased.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/locbased.h
diff --git a/source/common/locbased.h b/source/common/locbased.h
index 366b15109e8979cca50c57e3f97aa703e85e13bb..2e0400e3164dcda48b64a299b452702948aa00e5 100644
--- a/source/common/locbased.h
+++ b/source/common/locbased.h
@@ -1,6 +1,6 @@
/*
**********************************************************************
-* Copyright (c) 2004, International Business Machines
+* Copyright (c) 2004-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Author: Alan Liu
@@ -17,7 +17,7 @@
/**
* Macro to declare a locale LocaleBased wrapper object for the given
* object, which must have two members named `validLocale' and
- * `actualLocale'.
+ * `actualLocale' of size ULOC_FULLNAME_CAPACITY
*/
#define U_LOCALE_BASED(varname, objname) \
LocaleBased varname((objname).validLocale, (objname).actualLocale);
@@ -75,6 +75,14 @@ class U_COMMON_API LocaleBased : public UMemory {
*/
void setLocaleIDs(const char* valid, const char* actual);
+ /**
+ * Set the locale meta-data for the service object wrapped by this
+ * object.
+ * @param valid the ID of the valid locale
+ * @param actual the ID of the actual locale
+ */
+ void setLocaleIDs(const Locale& valid, const Locale& actual);
+
private:
char* valid;
« no previous file with comments | « source/common/loadednormalizer2impl.cpp ('k') | source/common/locbased.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698