NumericShaper.Range

public static enum NumericShaper.Range extends Enum<NumericShaper.Range>

A NumericShaper.Range represents a Unicode range of a script having its own decimal digits. For example, the THAI range has the Thai digits, THAI DIGIT ZERO (U+0E50) to THAI DIGIT NINE (U+0E59).

The Range enum replaces the traditional bit mask-based values (e.g., ARABIC), and supports more Unicode ranges than the bit mask-based ones. For example, the following code using the bit mask:

 NumericShaper.getContextualShaper(NumericShaper.ARABIC |
                                     NumericShaper.TAMIL,
                                   NumericShaper.EUROPEAN);
 
can be written using this enum as:
 NumericShaper.getContextualShaper(EnumSet.of(
                                     NumericShaper.Range.ARABIC,
                                     NumericShaper.Range.TAMIL),
                                   NumericShaper.Range.EUROPEAN);
 

Inherited Method Summary

Enum Values

public static final NumericShaper.Range ARABIC

The Arabic range with the Arabic-Indic digits.

public static final NumericShaper.Range BALINESE

The Balinese range with the Balinese digits.

public static final NumericShaper.Range BENGALI

The Bengali range with the Bengali digits.

public static final NumericShaper.Range CHAM

The Cham range with the Cham digits.

public static final NumericShaper.Range DEVANAGARI

The Devanagari range with the Devanagari digits.

public static final NumericShaper.Range EASTERN_ARABIC

The Arabic range with the Eastern Arabic-Indic digits.

public static final NumericShaper.Range ETHIOPIC

The Ethiopic range with the Ethiopic digits. Ethiopic does not have a decimal digit 0 so Latin (European) 0 is used.

public static final NumericShaper.Range EUROPEAN

The Latin (European) range with the Latin (ASCII) digits.

public static final NumericShaper.Range GUJARATI

The Gujarati range with the Gujarati digits.

public static final NumericShaper.Range GURMUKHI

The Gurmukhi range with the Gurmukhi digits.

public static final NumericShaper.Range JAVANESE

The Javanese range with the Javanese digits.

public static final NumericShaper.Range KANNADA

The Kannada range with the Kannada digits.

public static final NumericShaper.Range KAYAH_LI

The Kayah Li range with the Kayah Li digits.

public static final NumericShaper.Range KHMER

The Khmer range with the Khmer digits.

public static final NumericShaper.Range LAO

The Lao range with the Lao digits.

public static final NumericShaper.Range LEPCHA

The Lepcha range with the Lepcha digits.

public static final NumericShaper.Range LIMBU

The Limbu range with the Limbu digits.

public static final NumericShaper.Range MALAYALAM