1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/common/locutil.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/** 1.5 + ******************************************************************************* 1.6 + * Copyright (C) 2002-2005, International Business Machines Corporation and * 1.7 + * others. All Rights Reserved. * 1.8 + ******************************************************************************* 1.9 + * 1.10 + ******************************************************************************* 1.11 + */ 1.12 +#ifndef LOCUTIL_H 1.13 +#define LOCUTIL_H 1.14 + 1.15 +#include "unicode/utypes.h" 1.16 +#include "hash.h" 1.17 + 1.18 +#if !UCONFIG_NO_SERVICE || !UCONFIG_NO_TRANSLITERATION 1.19 + 1.20 + 1.21 +U_NAMESPACE_BEGIN 1.22 + 1.23 +// temporary utility functions, till I know where to find them 1.24 +// in header so tests can also access them 1.25 + 1.26 +class U_COMMON_API LocaleUtility { 1.27 +public: 1.28 + static UnicodeString& canonicalLocaleString(const UnicodeString* id, UnicodeString& result); 1.29 + static Locale& initLocaleFromName(const UnicodeString& id, Locale& result); 1.30 + static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result); 1.31 + static const Hashtable* getAvailableLocaleNames(const UnicodeString& bundleID); 1.32 + static UBool isFallbackOf(const UnicodeString& root, const UnicodeString& child); 1.33 +}; 1.34 + 1.35 +U_NAMESPACE_END 1.36 + 1.37 + 1.38 +#endif 1.39 + 1.40 +#endif