os/textandloc/fontservices/textshaperplugin/IcuSource/common/locutil.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/**
sl@0
     2
 *******************************************************************************
sl@0
     3
 * Copyright (C) 2002-2005, International Business Machines Corporation and    *
sl@0
     4
 * others. All Rights Reserved.                                                *
sl@0
     5
 *******************************************************************************
sl@0
     6
 *
sl@0
     7
 *******************************************************************************
sl@0
     8
 */
sl@0
     9
#ifndef LOCUTIL_H
sl@0
    10
#define LOCUTIL_H
sl@0
    11
sl@0
    12
#include "unicode/utypes.h"
sl@0
    13
#include "hash.h"
sl@0
    14
sl@0
    15
#if !UCONFIG_NO_SERVICE || !UCONFIG_NO_TRANSLITERATION
sl@0
    16
sl@0
    17
sl@0
    18
U_NAMESPACE_BEGIN
sl@0
    19
sl@0
    20
// temporary utility functions, till I know where to find them
sl@0
    21
// in header so tests can also access them
sl@0
    22
sl@0
    23
class U_COMMON_API LocaleUtility {
sl@0
    24
public:
sl@0
    25
  static UnicodeString& canonicalLocaleString(const UnicodeString* id, UnicodeString& result);
sl@0
    26
  static Locale& initLocaleFromName(const UnicodeString& id, Locale& result);
sl@0
    27
  static UnicodeString& initNameFromLocale(const Locale& locale, UnicodeString& result);
sl@0
    28
  static const Hashtable* getAvailableLocaleNames(const UnicodeString& bundleID);
sl@0
    29
  static UBool isFallbackOf(const UnicodeString& root, const UnicodeString& child);
sl@0
    30
};
sl@0
    31
sl@0
    32
U_NAMESPACE_END
sl@0
    33
sl@0
    34
sl@0
    35
#endif
sl@0
    36
sl@0
    37
#endif