Added in API level 24
android.icu.text
Interfaces
| Collator.ReorderCodes | Reordering codes for non-script groups that can be reordered under collation. |
| FormattedValue | An abstract formatted value: a string with associated field attributes. |
| Replaceable |
Replaceable is an interface representing a
string of characters that supports the replacement of a range of
itself with a new string of characters.
|
| SymbolTable | An interface that defines both lookup protocol and parsing of symbolic names. |
| UnicodeMatcher |
UnicodeMatcher defines a protocol for objects that can
match a range of characters in a Replaceable string.
|
Classes
| AlphabeticIndex<V> | AlphabeticIndex supports the creation of a UI index appropriate for a given language. |
| AlphabeticIndex.Bucket<V> | An index "bucket" with a label string and type. |
| AlphabeticIndex.ImmutableIndex<V> |
Immutable, thread-safe version of AlphabeticIndex.
|
| AlphabeticIndex.Record<V> | A (name, data) pair, to be sorted by name into one of the index buckets. |
| Bidi |
Bidi algorithm for ICUThis is an implementation of the Unicode Bidirectional Algorithm. |
| BidiClassifier | Overrides default Bidi class values with custom ones. |
| BidiRun | A BidiRun represents a sequence of characters at the same embedding level. |
| BreakIterator |
[icu enhancement] ICU's replacement for BreakIterator. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| CaseMap | Low-level case mapping options and methods. |
| CaseMap.Fold | Case folding options and methods. |
| CaseMap.Lower | Lowercasing options and methods. |
| CaseMap.Title | Titlecasing options and methods. |
| CaseMap.Upper | Uppercasing options and methods. |
| CollationElementIterator |
CollationElementIterator is an iterator created by
a RuleBasedCollator to walk through a string.
|
| CollationKey |
A CollationKey represents a String
under the rules of a specific Collator
object.
|
| CollationKey.BoundMode | Options that used in the API CollationKey.getBound() for getting a CollationKey based on the bound mode requested. |
| Collator |
[icu enhancement] ICU's replacement for Collator. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| CompactDecimalFormat | Formats numbers in compact (abbreviated) notation, like "1.2K" instead of "1200". |
| ConstrainedFieldPosition | Represents a span of a string containing a given field. |
| CurrencyPluralInfo | This class represents the information needed by DecimalFormat to format currency plural, such as "3.00 US dollars" or "1.00 US dollar". |
| DateFormat |
[icu enhancement] ICU's replacement for DateFormat. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| DateFormat.Field | The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that DateFormat.formatToCharacterIterator() method returns. |
| DateFormatSymbols |
[icu enhancement] ICU's replacement for DateFormatSymbols. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| DateIntervalFormat | DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent manner. |
| DateIntervalFormat.FormattedDateInterval | An immutable class containing the result of a date interval formatting operation. |
| DateIntervalInfo | DateIntervalInfo is a public class for encapsulating localizable date time interval patterns. |
| DateIntervalInfo.PatternInfo | PatternInfo class saves the first and second part of interval pattern, and whether the interval pattern is earlier date first. |
| DateTimePatternGenerator | This class provides flexible generation of date format patterns, like "yy-MM-dd". |
| DateTimePatternGenerator.PatternInfo | PatternInfo supplies output parameters for addPattern(...). |
| DecimalFormat |
[icu enhancement] ICU's replacement for DecimalFormat. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| DecimalFormatSymbols |
[icu enhancement] ICU's replacement for DecimalFormatSymbols. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| DisplayOptions | Represents all the display options that are supported by CLDR such as grammatical case, noun class, ... |
| DisplayOptions.Builder |
Responsible for building DisplayOptions.
|
| Edits | Records lengths of string edits but not replacement text. |
| Edits.Iterator | Access to the list of edits. |
| IDNA | Abstract base class for IDNA processing. |
| IDNA.Info | Output container for IDNA processing errors. |
| ListFormatter | Immutable class for formatting a list, using data from CLDR (or supplied separately). |
| ListFormatter.FormattedList | An immutable class containing the result of a list formatting operation. |
| LocaleDisplayNames | Returns display names of ULocales and components of ULocales. |
| LocaleDisplayNames.UiListItem | Struct-like class used to return information for constructing a UI list, each corresponding to a locale. |
| MeasureFormat | A formatter for Measure objects. |
| MessageFormat |
[icu enhancement] ICU's replacement for MessageFormat. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| MessageFormat.Field |
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned
from MessageFormat.formatToCharacterIterator.
|
| MessagePattern | Parses and represents ICU MessageFormat patterns. |
| MessagePattern.Part | A message pattern "part", representing a pattern parsing event. |
| Normalizer | Old Unicode normalization API. |
| Normalizer.QuickCheckResult | Result values for quickCheck(). |
| Normalizer2 | Unicode normalization functionality for standard Unicode normalization or for using custom mapping tables. |
| NumberFormat |
[icu enhancement] ICU's replacement for NumberFormat. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| NumberFormat.Field | The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that NumberFormat.formatToCharacterIterator() method returns. |
| NumberingSystem |
NumberingSystem is the base class for all number
systems.
|
| PluralFormat |
PluralFormat supports the creation of internationalized
messages with plural inflection.
|
| PluralRules |
Defines rules for mapping non-negative numeric values onto a small set of keywords. |
| RelativeDateTimeFormatter | Formats simple relative dates. |
| RelativeDateTimeFormatter.FormattedRelativeDateTime | Represents the result of a formatting operation of a relative datetime. |
| RuleBasedCollator |
RuleBasedCollator is a concrete subclass of Collator. |
| ScientificNumberFormatter | A formatter that formats numbers in user-friendly scientific notation. |
| SearchIterator | SearchIterator is an abstract base class that provides methods to search for a pattern within a text string. |
| SelectFormat |
|
| SimpleDateFormat |
[icu enhancement] ICU's replacement for SimpleDateFormat. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
|
| StringSearch |
StringSearch is a SearchIterator that provides
language-sensitive text searching based on the comparison rules defined
in a RuleBasedCollator object.
|
| TimeZoneFormat |
TimeZoneFormat supports time zone display name formatting and parsing.
|
| TimeZoneNames |
TimeZoneNames is an abstract class representing the time zone display name data model defined
by UTS#35 Unicode Locale Data Markup Language (LDML).
|
| Transliterator |
Transliterator is an abstract class that transliterates text from one format to another.
|
| Transliterator.Position | Position structure for incremental transliteration. |
| UCharacterIterator | Abstract class that defines an API for iteration on text objects.This is an interface for forward and backward iteration and random access into a text object. |
| UFormat |
An abstract class that extends Format to provide
additional ICU protocol, specifically, the getLocale()
API.
|
| UnicodeFilter |
UnicodeFilter defines a protocol for selecting a
subset of the full range (U+0000 to U+FFFF) of Unicode characters.
|
| UnicodeSet | A mutable set of Unicode characters and multicharacter strings. |
| UnicodeSet.EntryRange | A struct-like class used for iteration through ranges, for faster iteration than by String. |
| UnicodeSetIterator | UnicodeSetIterator iterates over the contents of a UnicodeSet. |
| UnicodeSetSpanner | A helper class used to count, replace, and trim CharSequences based on UnicodeSet matches. |
Enums
| AlphabeticIndex.Bucket.LabelType | Type of the label |
| CompactDecimalFormat.CompactStyle | Style parameter for CompactDecimalFormat. |
| DateFormat.BooleanAttribute | boolean attributes |
| DateFormat.HourCycle | Hour Cycle |
| DateTimePatternGenerator.DisplayWidth | Field display name width constants for getFieldDisplayName |
| DisplayContext | Display context settings. |
| DisplayContext.Type | Type values for DisplayContext |
| DisplayOptions.Capitalization | Represents all the capitalization options. |
| DisplayOptions.DisplayLength | Represents all the display lengths. |
| DisplayOptions.GrammaticalCase | Represents all the grammatical cases that are supported by CLDR. |
| DisplayOptions.NameStyle | Represents all the name styles. |
| DisplayOptions.NounClass | Represents all the grammatical noun classes that are supported by CLDR. |
| DisplayOptions.PluralCategory | Standard CLDR plural category constants. |
| DisplayOptions.SubstituteHandling | Represents all the substitute handlings. |
| IDNA.Error | IDNA error bit set values. |
| ListFormatter.Type | Type of meaning expressed by the list. |
| ListFormatter.Width | Verbosity level of the list patterns. |
| LocaleDisplayNames.DialectHandling |
Enum used in LocaleDisplayNames.getInstance(android.icu.util.ULocale, android.icu.text.LocaleDisplayNames.DialectHandling).
|
| MeasureFormat.FormatWidth | Formatting width enum. |
| MessagePattern.ApostropheMode | Mode for when an apostrophe starts quoted literal text for MessageFormat output. |
| MessagePattern.ArgType | Argument type constants. |
| MessagePattern.Part.Type | Part type constants. |
| Normalizer2.Mode | Constants for normalization modes. |
| PluralRules.PluralType | Type of plurals and PluralRules. |
| RelativeDateTimeFormatter.AbsoluteUnit | Represents an absolute unit. |
| RelativeDateTimeFormatter.Direction | Represents a direction for an absolute unit e.g "Next Tuesday" or "Last Tuesday" |
| RelativeDateTimeFormatter.RelativeDateTimeUnit | Represents the unit for formatting a relative date. |
| RelativeDateTimeFormatter.RelativeUnit | Represents the unit for formatting a relative date. |
| RelativeDateTimeFormatter.Style | The formatting style |
| SearchIterator.ElementComparisonType | Option to control how collation elements are compared. |
| TimeZoneFormat.GMTOffsetPatternType | Offset pattern type enum. |
| TimeZoneFormat.ParseOption | Parse option enum, used for specifying optional parse behavior. |
| TimeZoneFormat.Style |
Time zone display format style enum used by format/parse APIs in TimeZoneFormat.
|
| TimeZoneFormat.TimeType |
Time type enum used for receiving time type (standard time, daylight time or unknown)
in TimeZoneFormat APIs.
|
| TimeZoneNames.NameType | Time zone display name types |
| UnicodeSet.ComparisonStyle |
Comparison style enums used by UnicodeSet.compareTo(UnicodeSet, ComparisonStyle).
|
| UnicodeSet.SpanCondition | Argument values for whether span() and similar functions continue while the current character is contained vs. |
| UnicodeSetSpanner.CountMethod | Options for replaceFrom and countIn to control how to treat each matched span. |
| UnicodeSetSpanner.TrimOption | Options for the trim() method |
Exceptions
| StringPrepParseException | Exception that signals an error has occurred while parsing the input to StringPrep or IDNA. |
Interfaces
Classes
- AlphabeticIndex
- AlphabeticIndex.Bucket
- AlphabeticIndex.ImmutableIndex
- AlphabeticIndex.Record
- Bidi
- BidiClassifier
- BidiRun
- BreakIterator
- CaseMap
- CaseMap.Fold
- CaseMap.Lower
- CaseMap.Title
- CaseMap.Upper
- CollationElementIterator
- CollationKey
- CollationKey.BoundMode
- Collator
- CompactDecimalFormat
- ConstrainedFieldPosition
- CurrencyPluralInfo
- DateFormat
- DateFormat.Field
- DateFormatSymbols
- DateIntervalFormat
- DateIntervalFormat.FormattedDateInterval
- DateIntervalInfo
- DateIntervalInfo.PatternInfo
- DateTimePatternGenerator
- DateTimePatternGenerator.PatternInfo
- DecimalFormat
- DecimalFormatSymbols
- DisplayOptions
- DisplayOptions.Builder
- Edits
- Edits.Iterator
- IDNA
- IDNA.Info
- ListFormatter
- ListFormatter.FormattedList
- LocaleDisplayNames
- LocaleDisplayNames.UiListItem
- MeasureFormat
- MessageFormat
- MessageFormat.Field
- MessagePattern
- MessagePattern.Part
- Normalizer
- Normalizer.QuickCheckResult
- Normalizer2
- NumberFormat
- NumberFormat.Field
- NumberingSystem
- PluralFormat
- PluralRules
- RelativeDateTimeFormatter
- RelativeDateTimeFormatter.FormattedRelativeDateTime
- RuleBasedCollator
- ScientificNumberFormatter
- SearchIterator
- SelectFormat
- SimpleDateFormat
- StringSearch
- TimeZoneFormat
- TimeZoneNames
- Transliterator
- Transliterator.Position
- UCharacterIterator
- UFormat
- UnicodeFilter
- UnicodeSet
- UnicodeSet.EntryRange
- UnicodeSetIterator
- UnicodeSetSpanner
Enums
- AlphabeticIndex.Bucket.LabelType
- CompactDecimalFormat.CompactStyle
- DateFormat.BooleanAttribute
- DateFormat.HourCycle
- DateTimePatternGenerator.DisplayWidth
- DisplayContext
- DisplayContext.Type
- DisplayOptions.Capitalization
- DisplayOptions.DisplayLength
- DisplayOptions.GrammaticalCase
- DisplayOptions.NameStyle
- DisplayOptions.NounClass
- DisplayOptions.PluralCategory
- DisplayOptions.SubstituteHandling
- IDNA.Error
- ListFormatter.Type
- ListFormatter.Width
- LocaleDisplayNames.DialectHandling
- MeasureFormat.FormatWidth
- MessagePattern.ApostropheMode
- MessagePattern.ArgType
- MessagePattern.Part.Type
- Normalizer2.Mode
- PluralRules.PluralType
- RelativeDateTimeFormatter.AbsoluteUnit
- RelativeDateTimeFormatter.Direction
- RelativeDateTimeFormatter.RelativeDateTimeUnit
- RelativeDateTimeFormatter.RelativeUnit
- RelativeDateTimeFormatter.Style
- SearchIterator.ElementComparisonType
- TimeZoneFormat.GMTOffsetPatternType
- TimeZoneFormat.ParseOption
- TimeZoneFormat.Style
- TimeZoneFormat.TimeType
- TimeZoneNames.NameType
- UnicodeSet.ComparisonStyle
- UnicodeSet.SpanCondition
- UnicodeSetSpanner.CountMethod
- UnicodeSetSpanner.TrimOption
Exceptions