1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/**
4 *******************************************************************************
5 * Copyright (C) 2002-2005, International Business Machines Corporation and *
6 * others. All Rights Reserved. *
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
20U_NAMESPACE_BEGIN
21
22// temporary utility functions, till I know where to find them
23// in header so tests can also access them
24
25class U_COMMON_API LocaleUtility {
26public:
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);
32};
33
34U_NAMESPACE_END
35
36
37#endif
38
39#endif
40