]> granicus.if.org Git - icu/commitdiff
ICU-10365 fix namespace issue: icu::UInitOnce
authorMarkus Scherer <markus.icu@gmail.com>
Tue, 10 Sep 2013 00:34:12 +0000 (00:34 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Tue, 10 Sep 2013 00:34:12 +0000 (00:34 +0000)
X-SVN-Rev: 34252

27 files changed:
icu4c/source/common/locavailable.cpp
icu4c/source/common/normalizer2.cpp
icu4c/source/common/rbbi.cpp
icu4c/source/common/ucnv_bld.cpp
icu4c/source/common/ucnv_io.cpp
icu4c/source/common/udata.cpp
icu4c/source/common/uinit.cpp
icu4c/source/common/unames.cpp
icu4c/source/common/uniset_props.cpp
icu4c/source/common/uresbund.cpp
icu4c/source/common/usprep.cpp
icu4c/source/i18n/buddhcal.cpp
icu4c/source/i18n/chnsecal.cpp
icu4c/source/i18n/coptccal.cpp
icu4c/source/i18n/decfmtst.cpp
icu4c/source/i18n/ethpccal.cpp
icu4c/source/i18n/gregocal.cpp
icu4c/source/i18n/hebrwcal.cpp
icu4c/source/i18n/islamcal.cpp
icu4c/source/i18n/numfmt.cpp
icu4c/source/i18n/persncal.cpp
icu4c/source/i18n/taiwncal.cpp
icu4c/source/i18n/timezone.cpp
icu4c/source/i18n/tzfmt.cpp
icu4c/source/i18n/ucol_bld.cpp
icu4c/source/i18n/ucol_res.cpp
icu4c/source/i18n/zonemeta.cpp

index a04c20468c08891aa0d2239d492922ee1da620b4..2bf19de07fbd8b2e189eca3a6012e3766fe52237 100644 (file)
@@ -33,7 +33,7 @@ U_NAMESPACE_BEGIN
 
 static icu::Locale*  availableLocaleList = NULL;
 static int32_t  availableLocaleListCount;
-static UInitOnce gInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gInitOnce = U_INITONCE_INITIALIZER;
 
 U_NAMESPACE_END
 
@@ -100,7 +100,7 @@ static const char _kIndexTag[]        = "InstalledLocales";
 
 static char** _installedLocales = NULL;
 static int32_t _installedLocalesCount = 0;
-static UInitOnce _installedLocalesInitOnce;
+static icu::UInitOnce _installedLocalesInitOnce;
 
 /* ### Get available **************************************************/
 
index 68936c0c7c7245a3711cc645342a5c82bdb70ff1..ed82f2c07fcc208692fbf1712febfa093c992010 100644 (file)
@@ -458,10 +458,10 @@ static Norm2AllModes *nfkc_cfSingleton;
 static Normalizer2   *noopSingleton;
 static UHashtable    *cache=NULL;
 
-static UInitOnce nfcInitOnce = U_INITONCE_INITIALIZER;
-static UInitOnce nfkcInitOnce = U_INITONCE_INITIALIZER;
-static UInitOnce nfkc_cfInitOnce = U_INITONCE_INITIALIZER;
-static UInitOnce noopInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce nfcInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce nfkcInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce nfkc_cfInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce noopInitOnce = U_INITONCE_INITIALIZER;
 
 // UInitOnce singleton initialization function
 static void U_CALLCONV initSingletons(const char *what, UErrorCode &errorCode) {
index aa745c1c7073995b4e5fe4739a8dd74118f00578..2f0d1ba99e5338627dfc4d4790a49baacd1c67ca 100644 (file)
@@ -1794,7 +1794,7 @@ U_NAMESPACE_END
 
 
 static icu::UStack *gLanguageBreakFactories = NULL;
-static icu::UInitOnce    gLanguageBreakFactoriesInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gLanguageBreakFactoriesInitOnce = U_INITONCE_INITIALIZER;
 
 /**
  * Release all static memory held by breakiterator.  
index e07ec6210e1cd9a042f94d96fbb5d199c54a1f5d..d34a1b485362f53a6bb88239e40744093811e019 100644 (file)
@@ -167,7 +167,7 @@ static UMutex cnvCacheMutex = U_MUTEX_INITIALIZER;  /* Mutex for synchronizing c
 
 static const char **gAvailableConverters = NULL;
 static uint16_t gAvailableConverterCount = 0;
-static UInitOnce gAvailableConvertersInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gAvailableConvertersInitOnce = U_INITONCE_INITIALIZER;
 
 #if !U_CHARSET_IS_UTF8
 
index 0ccb441698bd0596319005d521ebc112ee92935a..94812cfd51d39275a12909c623a140d5853ab749 100644 (file)
@@ -175,7 +175,7 @@ static const char DATA_NAME[] = "cnvalias";
 static const char DATA_TYPE[] = "icu";
 
 static UDataMemory *gAliasData=NULL;
-static UInitOnce    gAliasDataInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gAliasDataInitOnce = U_INITONCE_INITIALIZER;
 
 enum {
     tocLengthIndex=0,
index 4971caf352f042259e0e90db15f47105504dcf59..f82b531c74d45b82b3289d2cea9195a833c67800 100644 (file)
@@ -107,7 +107,7 @@ static UDataMemory *gCommonICUDataArray[10] = { NULL };
 static UBool gHaveTriedToLoadCommonData = FALSE;  /* See extendICUData(). */
 
 static UHashtable  *gCommonDataCache = NULL;  /* Global hash table of opened ICU data files.  */
-static UInitOnce    gCommonDataCacheInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gCommonDataCacheInitOnce = U_INITONCE_INITIALIZER;
 
 static UDataFileAccess  gDataFileAccess = UDATA_DEFAULT_ACCESS;
 
index 9b745ab14d1c64f7b42accae327124f2f66f618d..e97869b2db24df7c0e87b87322675d3c1e210251 100644 (file)
@@ -1,11 +1,9 @@
 /*
 ******************************************************************************
-*                                                                            *
-* Copyright (C) 2001-2013, International Business Machines                   *
-*                Corporation and others. All Rights Reserved.                *
-*                                                                            *
+* Copyright (C) 2001-2013, International Business Machines
+*                Corporation and others. All Rights Reserved.
 ******************************************************************************
-*   file name:  uinit.c
+*   file name:  uinit.cpp
 *   encoding:   US-ASCII
 *   tab size:   8 (not used)
 *   indentation:4
index de74b4abaa23804220b625f54b6fac32d030df2a..6a3e81c561df766abd045a701778522413a313d5 100644 (file)
@@ -105,7 +105,7 @@ typedef struct {
 
 static UDataMemory *uCharNamesData=NULL;
 static UCharNames *uCharNames=NULL;
-static UInitOnce  gCharNamesInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gCharNamesInitOnce = U_INITONCE_INITIALIZER;
 
 /*
  * Maximum length of character names (regular & 1.0).
index 42468b579896a59bc14ddf8d4216d72144c7211a..1296d089eaafdb983aeadcffbd9dcb68345087ff 100644 (file)
@@ -105,7 +105,7 @@ struct Inclusion {
 static Inclusion gInclusions[UPROPS_SRC_COUNT]; // cached getInclusions()
 
 static UnicodeSet *uni32Singleton;
-static UInitOnce  uni32InitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce uni32InitOnce = U_INITONCE_INITIALIZER;
 
 //----------------------------------------------------------------
 // Inclusions list
index 035799c56ddf413ccb53e77eab391034852bee43..8081646f5e87ec90209a306d9adfd3786bfe55f8 100644 (file)
@@ -44,7 +44,7 @@ TODO: This cache should probably be removed when the deprecated code is
       completely removed.
 */
 static UHashtable *cache = NULL;
-static UInitOnce   gCacheInitOnce;
+static icu::UInitOnce gCacheInitOnce;
 
 static UMutex resbMutex = U_MUTEX_INITIALIZER;
 
index 722f6b2510173efe1fcda7f7505e9edae5cc202e..9e5d70c2668ac722c7fb50e6df8f9390a3b5f555 100644 (file)
@@ -42,7 +42,7 @@ U_CDECL_BEGIN
 Static cache for already opened StringPrep profiles
 */
 static UHashtable *SHARED_DATA_HASHTABLE = NULL;
-static UInitOnce   gSharedDataInitOnce;
+static icu::UInitOnce gSharedDataInitOnce;
 
 static UMutex usprepMutex = U_MUTEX_INITIALIZER;
 
index a4fa7b66f1d0fbd856ff104ec94967c49a4b0c16..99f2bd4c21ccbab31ecec0fe93392c2310e5954d 100644 (file)
@@ -131,7 +131,7 @@ void BuddhistCalendar::timeToFields(UDate theTime, UBool quick, UErrorCode& stat
  */
 static UDate     gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t   gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce gBCInitOnce;
+static icu::UInitOnce gBCInitOnce;
 
 
 UBool BuddhistCalendar::haveDefaultCentury() const
index 8ff04ac5213d7235a450a9b7dd0e7ea352b74598..893f9f6cacc24e8087527fc94755be09e819c983 100644 (file)
@@ -838,7 +838,7 @@ ChineseCalendar::inDaylightTime(UErrorCode& status) const
 
 static UDate     gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t   gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce gSystemDefaultCenturyInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gSystemDefaultCenturyInitOnce = U_INITONCE_INITIALIZER;
 
 
 UBool ChineseCalendar::haveDefaultCentury() const
index 9b19e8adbf7ad6c9f7e17f0b8b7b84a8663c73b9..55195e9859aceb21026b68483dcb029e4bcadb1f 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
-* Copyright (C) 2003 - 2013, International Business Machines Corporation and  *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 2003 - 2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 */
 
@@ -101,7 +101,7 @@ CopticCalendar::handleComputeFields(int32_t julianDay, UErrorCode &/*status*/)
  */
 static UDate           gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t         gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce       gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
+static icu::UInitOnce  gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
 
 
 static void U_CALLCONV initializeSystemDefaultCentury() {
index 44872a7d6595f8416012d7ca3ca9340d2b26bf23..d1ea6f4d4c4a1f2850c8ef2b5d883e315a515997 100644 (file)
@@ -184,7 +184,7 @@ void DecimalFormatStaticSets::cleanup() { // Be sure to clean up newly added fie
 }
 
 static DecimalFormatStaticSets *gStaticSets;
-static UInitOnce gStaticSetsInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gStaticSetsInitOnce = U_INITONCE_INITIALIZER;
 
 
 //------------------------------------------------------------------------------
index dd386025c644ae1759f348ed128931de33130d6b..dc5bd691113bcce4ea3babc314cc44e596a5182e 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
-* Copyright (C) 2003 - 2013, International Business Machines Corporation and  *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 2003 - 2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 */
 
@@ -141,7 +141,7 @@ EthiopicCalendar::handleGetLimit(UCalendarDateFields field, ELimitType limitType
  */
 static UDate           gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t         gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce       gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
+static icu::UInitOnce  gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
 
 static void U_CALLCONV initializeSystemDefaultCentury()
 {
index 9e00b4266b94044dec1b7ba49fed81b1886d9879..1854ccc69e9e781029562594bd16d5c4f8b7a56d 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
-* Copyright (C) 1997-2013, International Business Machines Corporation and    *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 1997-2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 *
 * File GREGOCAL.CPP
@@ -1271,7 +1271,7 @@ GregorianCalendar::getType() const {
  */
 static UDate           gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t         gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce       gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
+static icu::UInitOnce  gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
 
 
 UBool GregorianCalendar::haveDefaultCentury() const
index cdd76953830520b103e9e2011b52738003fd2f42..aa16adf988bfe1159b34260e41ef3e863721719c 100644 (file)
@@ -675,7 +675,7 @@ HebrewCalendar::inDaylightTime(UErrorCode& status) const
  */
 static UDate           gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t         gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce       gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
+static icu::UInitOnce  gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
 
 UBool HebrewCalendar::haveDefaultCentury() const
 {
index c610038c809d14b21bb24846ebad923351430542..fec702799db4549b140ffb88370655529ba5b50b 100644 (file)
@@ -522,7 +522,7 @@ IslamicCalendar::inDaylightTime(UErrorCode& status) const
  */
 static UDate           gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t         gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce       gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
+static icu::UInitOnce  gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
 
 
 UBool IslamicCalendar::haveDefaultCentury() const
index a89d16e9dc39ba195b6e44b3c20d02fcc80f4cdc..779b699d92f430bad524841267f9847ae34b0f51 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
-* Copyright (C) 1997-2013, International Business Machines Corporation and    *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 1997-2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 *
 * File NUMFMT.CPP
index 60afeb4eb9ee44d68157293536844f2f82c463e9..bcc1411ea125543a2ba700edf57c9e2e5da7e972 100644 (file)
@@ -248,7 +248,7 @@ PersianCalendar::inDaylightTime(UErrorCode& status) const
 
 static UDate           gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t         gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce       gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
+static icu::UInitOnce  gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
 
 UBool PersianCalendar::haveDefaultCentury() const
 {
index 0b244fe3b366251d6b12031b6f79cafb0f567c89..5fa55d9ba77076c9c74fc7f9664a7fac2cd7c642 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *******************************************************************************
- * Copyright (C) 2003-2013, International Business Machines Corporation and    *
- * others. All Rights Reserved.                                                *
+ * Copyright (C) 2003-2013, International Business Machines Corporation and
+ * others. All Rights Reserved.
  *******************************************************************************
  *
  * File TAIWNCAL.CPP
@@ -138,7 +138,7 @@ void TaiwanCalendar::timeToFields(UDate theTime, UBool quick, UErrorCode& status
  */
 static UDate           gSystemDefaultCenturyStart       = DBL_MIN;
 static int32_t         gSystemDefaultCenturyStartYear   = -1;
-static UInitOnce       gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
+static icu::UInitOnce  gSystemDefaultCenturyInit        = U_INITONCE_INITIALIZER;
 
 UBool TaiwanCalendar::haveDefaultCentury() const
 {
index 5eb7da4d7e61195983862dce91b2d81454f3a476..0e37d19b38bdf803ffcd3b39646ae1dd4db96c4c 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
-* Copyright (C) 1997-2013, International Business Machines Corporation and    *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 1997-2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 *
 * File TIMEZONE.CPP
index d4ac316481ac3b0b92f2564c7e10cf44eae139bd..3b787627e33837ad9f0c4cdddaf38026a77edeee 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
-* Copyright (C) 2011-2013, International Business Machines Corporation and    *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 2011-2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 */
 
@@ -136,10 +136,10 @@ static const int32_t ALL_GENERIC_NAME_TYPES = UTZGNM_LOCATION | UTZGNM_LONG | UT
 
 // Time Zone ID/Short ID trie
 static TextTrieMap *gZoneIdTrie = NULL;
-static UInitOnce gZoneIdTrieInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gZoneIdTrieInitOnce = U_INITONCE_INITIALIZER;
 
 static TextTrieMap *gShortZoneIdTrie = NULL;
-static UInitOnce    gShortZoneIdTrieInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gShortZoneIdTrieInitOnce = U_INITONCE_INITIALIZER;
 
 static UMutex gLock = U_MUTEX_INITIALIZER;
 
index 8a2bf1c36b95dff4240016a6d4136f89eaadac15..822ef8c643410f02abd3180ef1400fdef8e692f8 100644 (file)
@@ -42,7 +42,7 @@
 
 static const InverseUCATableHeader* _staticInvUCA = NULL;
 static UDataMemory* invUCA_DATA_MEM = NULL;
-static icu::UInitOnce    gStaticInvUCAInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gStaticInvUCAInitOnce = U_INITONCE_INITIALIZER;
 
 U_CDECL_BEGIN
 static UBool U_CALLCONV
index 853de6e08aa177172692afa466e59c654bbbb8eb..9136edaa378070397dec50828a54df9243057f96 100644 (file)
@@ -55,7 +55,7 @@ static void ucol_setReorderCodesFromParser(UCollator *coll, UColTokenParser *par
 // static UCA. There is only one. Collators don't use it.
 // It is referenced only in ucol_initUCA and ucol_cleanup
 static UCollator* _staticUCA = NULL;
-static UInitOnce  gStaticUCAInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gStaticUCAInitOnce = U_INITONCE_INITIALIZER;
 // static pointer to udata memory. Inited in ucol_initUCA
 // used for cleanup in ucol_cleanup
 static UDataMemory* UCA_DATA_MEM = NULL;
index 2d2e4c35dcec1902086a4b0040dbca305248203b..1d34af5a9b7edb3b086b31f77c730466cebcbed6 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
-* Copyright (C) 2007-2013, International Business Machines Corporation and    *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 2007-2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 */
 
@@ -31,16 +31,16 @@ static UMutex gZoneMetaLock = U_MUTEX_INITIALIZER;
 
 // CLDR Canonical ID mapping table
 static UHashtable *gCanonicalIDCache = NULL;
-static icu::UInitOnce   gCanonicalIDCacheInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gCanonicalIDCacheInitOnce = U_INITONCE_INITIALIZER;
 
 // Metazone mapping table
 static UHashtable *gOlsonToMeta = NULL;
-static icu::UInitOnce   gOlsonToMetaInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gOlsonToMetaInitOnce = U_INITONCE_INITIALIZER;
 
 // Available metazone IDs vector and table
 static icu::UVector *gMetaZoneIDs = NULL;
 static UHashtable *gMetaZoneIDTable = NULL;
-static icu::UInitOnce   gMetaZoneIDsInitOnce = U_INITONCE_INITIALIZER;
+static icu::UInitOnce gMetaZoneIDsInitOnce = U_INITONCE_INITIALIZER;
 
 // Country info vectors
 static icu::UVector *gSingleZoneCountries = NULL;