sl@0: /** sl@0: ******************************************************************************* sl@0: * Copyright (C) 2002-2005, International Business Machines Corporation and * sl@0: * others. All Rights Reserved. * sl@0: ******************************************************************************* sl@0: * sl@0: ******************************************************************************* sl@0: */ sl@0: #ifndef LOCUTIL_H sl@0: #define LOCUTIL_H sl@0: sl@0: #include "unicode/utypes.h" sl@0: #include "hash.h" sl@0: sl@0: #if !UCONFIG_NO_SERVICE || !UCONFIG_NO_TRANSLITERATION sl@0: sl@0: sl@0: U_NAMESPACE_BEGIN sl@0: sl@0: // temporary utility functions, till I know where to find them sl@0: // in header so tests can also access them sl@0: sl@0: class U_COMMON_API LocaleUtility { sl@0: public: sl@0: static UnicodeString& canonicalLocaleString(const UnicodeString* id, UnicodeString& result); sl@0: static Locale& initLocaleFromName(const UnicodeString& id, Locale& result); sl@0: static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result); sl@0: static const Hashtable* getAvailableLocaleNames(const UnicodeString& bundleID); sl@0: static UBool isFallbackOf(const UnicodeString& root, const UnicodeString& child); sl@0: }; sl@0: sl@0: U_NAMESPACE_END sl@0: sl@0: sl@0: #endif sl@0: sl@0: #endif