NumberingSystem
public
class
NumberingSystem
extends Object
| java.lang.Object | |
| ↳ | android.icu.text.NumberingSystem |
NumberingSystem is the base class for all number
systems. This class provides the interface for setting different numbering
system types, whether it be a simple alternate digit system such as
Thai digits or Devanagari digits, or an algorithmic numbering system such
as Hebrew numbering or Chinese numbering.
Summary
Fields | |
|---|---|
public
static
final
NumberingSystem |
LATIN
For convenience, an instance representing the latn numbering system, which corresponds to digits in the ASCII range '0' through '9'. |
Public constructors | |
|---|---|
NumberingSystem()
Default constructor. |
|
Public methods | |
|---|---|
static
String[]
|
getAvailableNames()
Returns a string array containing a list of the names of numbering systems currently known to ICU. |
String
|
getDescription()
Returns the description string of the current numbering system. |
static
NumberingSystem
|
getInstance(ULocale locale)
Returns the default numbering system for the specified ULocale. |
static
NumberingSystem
|
getInstance()
Returns the default numbering system for the default |
static
NumberingSystem
|
getInstance(Locale inLocale)
Returns the default numbering system for the specified locale. |
static
NumberingSystem
|
getInstance(int radix_in, boolean isAlgorithmic_in, String desc_in)
Factory method for creating a numbering system. |
static
NumberingSystem
|
getInstanceByName(String name)
Returns a numbering system from one of the predefined numbering systems known to ICU. |
String
|
getName()
Returns the string representing the name of the numbering system. |
int
|
getRadix()
Returns the radix of the current numbering system. |
boolean
|
isAlgorithmic()
Returns the numbering system's algorithmic status. |
static
boolean
|
isValidDigitString(String str)
Convenience method to determine if a given digit string is valid for use as a descriptor of a numeric ( non-algorithmic ) numbering system. |
Inherited methods | |
|---|---|