1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 *******************************************************************************
5 * Copyright (C) 2002-2005, International Business Machines Corporation and *
6 * others. All Rights Reserved. *
7 *******************************************************************************
9 *******************************************************************************
14 #include "unicode/utypes.h"
17 #if !UCONFIG_NO_SERVICE || !UCONFIG_NO_TRANSLITERATION
22 // temporary utility functions, till I know where to find them
23 // in header so tests can also access them
25 class U_COMMON_API LocaleUtility {
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 UBool isFallbackOf(const UnicodeString& root, const UnicodeString& child);