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