2 *******************************************************************************
3 * Copyright (C) 2002-2005, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
7 *******************************************************************************
12 #include "unicode/utypes.h"
15 #if !UCONFIG_NO_SERVICE || !UCONFIG_NO_TRANSLITERATION
20 // temporary utility functions, till I know where to find them
21 // in header so tests can also access them
23 class U_COMMON_API LocaleUtility
{
25 static UnicodeString
& canonicalLocaleString(const UnicodeString
* id
, UnicodeString
& result
);
26 static Locale
& initLocaleFromName(const UnicodeString
& id
, Locale
& result
);
27 static UnicodeString
& initNameFromLocale(const Locale
& locale
, UnicodeString
& result
);
28 static const Hashtable
* getAvailableLocaleNames(const UnicodeString
& bundleID
);
29 static UBool
isFallbackOf(const UnicodeString
& root
, const UnicodeString
& child
);