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