com.ibm.icu.util
Class LocaleData

java.lang.Object
  extended by com.ibm.icu.util.LocaleData

Deprecated. This is a draft API and might change in a future release of ICU.

public final class LocaleData
extends Object

A class for accessing miscelleneous data in the locale bundles

Author:
ram

Nested Class Summary
static class LocaleData.MeasurementSystem
          Deprecated. This is a draft API and might change in a future release of ICU.
static class LocaleData.PaperSize
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Method Summary
static UnicodeSet getExemplarSet(ULocale locale, int options)
          Deprecated. This is a draft API and might change in a future release of ICU.
static LocaleData.MeasurementSystem getMeasurementSystem(ULocale locale)
          Deprecated. This is a draft API and might change in a future release of ICU.
static LocaleData.PaperSize getPaperSize(ULocale locale)
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExemplarSet

public static UnicodeSet getExemplarSet(ULocale locale,
                                        int options)
Deprecated. This is a draft API and might change in a future release of ICU.

Returns the set of exemplar characters for a locale.

Parameters:
locale - Locale for which the exemplar character set is to be retrieved.
options - Bitmask for options to apply to the exemplar pattern. Specify zero to retrieve the exemplar set as it is defined in the locale data. Specify UnicodeSet.CASE to retrieve a case-folded exemplar set. See UnicodeSet.applyPattern(String, int) for a complete list of valid options. The IGNORE_SPACE bit is always set, regardless of the value of 'options'.
Returns:
The set of exemplar characters for the given locale.

getMeasurementSystem

public static final LocaleData.MeasurementSystem getMeasurementSystem(ULocale locale)
Deprecated. This is a draft API and might change in a future release of ICU.

Returns the measurement system used in the locale specified by the locale.

Parameters:
locale - The locale for which the measurement system to be retrieved.
Returns:
MeasurementSystem the measurement system used in the locale.

getPaperSize

public static final LocaleData.PaperSize getPaperSize(ULocale locale)
Deprecated. This is a draft API and might change in a future release of ICU.

Returns the size of paper used in the locale. The paper sizes returned are always in milli-meters.

Parameters:
locale - The locale for which the measurement system to be retrieved.
Returns:
The paper size used in the locale


Copyright (c) 2004 IBM Corporation and others.