| 1 |
. |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
#ifndef LOCUTIL_H |
| 12 |
#define LOCUTIL_H |
| 13 |
|
| 14 |
#include "unicode/utypes.h" |
| 15 |
#include "hash.h" |
| 16 |
|
| 17 |
#if !UCONFIG_NO_SERVICE || !UCONFIG_NO_TRANSLITERATION |
| 18 |
|
| 19 |
|
| 20 |
U_NAMESPACE_BEGIN |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
class U_COMMON_API LocaleUtility { |
| 26 |
public: |
| 27 |
static UnicodeString& canonicalLocaleString(const UnicodeString* id, UnicodeString& result); |
| 28 |
static Locale& initLocaleFromName(const UnicodeString& id, Locale& result); |
| 29 |
static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result); |
| 30 |
static const Hashtable* getAvailableLocaleNames(const UnicodeString& bundleID); |
| 31 |
static bool isFallbackOf(const UnicodeString& root, const UnicodeString& child); |
| 32 |
}; |
| 33 |
|
| 34 |
U_NAMESPACE_END |
| 35 |
|
| 36 |
|
| 37 |
#endif |
| 38 |
|
| 39 |
#endif |