Android.Icu.Text Namespace

Provides ICU APIs for locale-sensitive formatting and comparison, text boundaries, Unicode matching, case conversion, normalization, and transliteration.

Classes

Name Description
AlphabeticIndex

AlphabeticIndex supports the creation of a UI index appropriate for a given language.

AlphabeticIndex.Bucket

An index "bucket" with a label string and type.

AlphabeticIndex.Bucket.LabelType

Type of the label

AlphabeticIndex.ImmutableIndex

Immutable, thread-safe version of AlphabeticIndex.

AlphabeticIndex.Record

A (name, data) pair, to be sorted by name into one of the index buckets.

Bidi

<h2>Bidi algorithm for ICU</h2>

        This 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

<strong>[icu enhancement]</strong> ICU's replacement for java.text.BreakIterator.

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.

Collator

<strong>[icu enhancement]</strong> ICU's replacement for java.text.Collator.

Collator.ReorderCodes

Contains the special-group and reset codes used in collation reordering.

CompactDecimalFormat

Formats numbers in compact (abbreviated) notation, like "1.

CompactDecimalFormat.CompactStyle

Style parameter for CompactDecimalFormat.

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.

DateFormat

<strong>[icu enhancement]</strong> ICU's replacement for java.text.DateFormat.

DateFormat.BooleanAttribute

boolean attributes

DateFormat.Field

The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that DateFormat.

DateFormat.HourCycle

Hour Cycle

DateFormatSymbols

<strong>[icu enhancement]</strong> ICU's replacement for java.text.DateFormatSymbols.

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.DisplayWidth

Field display name width constants for getFieldDisplayName

DateTimePatternGenerator.PatternInfo

PatternInfo supplies output parameters for addPattern(.

DecimalFormat

<strong>[icu enhancement]</strong> ICU's replacement for java.text.DecimalFormat.

DecimalFormatSymbols

<strong>[icu enhancement]</strong> ICU's replacement for java.text.DecimalFormatSymbols.

DisplayContext

Display context settings.

DisplayContext.Type

Type values for DisplayContext

DisplayOptions

Represents all the display options that are supported by CLDR such as grammatical case, noun class, .

DisplayOptions.Builder

Responsible for building DisplayOptions.

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.

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.Error

IDNA error bit set values.

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.

ListFormatter.Type

Type of meaning expressed by the list.

ListFormatter.Width

Verbosity level of the list patterns.

LocaleDisplayNames

Returns display names of ULocales and components of ULocales.

LocaleDisplayNames.DialectHandling

Enum used in #getInstance(ULocale, DialectHandling).

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.

MeasureFormat.FormatWidth

Formatting width enum.

MessageFormat

<strong>[icu enhancement]</strong> ICU's replacement for java.text.MessageFormat.

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.ApostropheMode

Mode for when an apostrophe starts quoted literal text for MessageFormat output.

MessagePattern.ArgType

Argument type constants.

MessagePattern.Part

A message pattern "part", representing a pattern parsing event.

MessagePattern.Part.Type

Part type constants.

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.

Normalizer2.Mode

Constants for normalization modes.

NumberFormat

<strong>[icu enhancement]</strong> ICU's replacement for java.text.NumberFormat.

NumberFormat.Field

The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that NumberFormat.

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.

PluralRules.PluralType

Type of plurals and PluralRules.

RelativeDateTimeFormatter

Formats simple relative dates.

RelativeDateTimeFormatter.AbsoluteUnit

Represents an absolute unit.

RelativeDateTimeFormatter.Direction

Represents a direction for an absolute unit e.

RelativeDateTimeFormatter.FormattedRelativeDateTime

Represents the result of a formatting operation of a relative datetime.

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

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.

SearchIterator.ElementComparisonType

Option to control how collation elements are compared.

SelectFormat

SelectFormat supports the creation of internationalized messages by selecting phrases based on keywords.

SimpleDateFormat

<strong>[icu enhancement]</strong> ICU's replacement for java.text.SimpleDateFormat.

StringPrepParseException

Exception that signals an error has occurred while parsing the input to StringPrep or IDNA.

StringSearch

StringSearch is a SearchIterator that provides language-sensitive text searching based on the comparison rules defined in a RuleBasedCollator object.

SymbolTable

Provides the symbol-reference marker used with Unicode pattern symbol tables.

TimeZoneFormat

TimeZoneFormat supports time zone display name formatting and parsing.

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

TimeZoneNames is an abstract class representing the time zone display name data model defined by UTS#35 Unicode Locale Data Markup Language (LDML).

TimeZoneNames.NameType

Time zone display name types

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.

UFormat

An abstract class that extends java.text.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.

UnicodeFilter.InterfaceConsts

Provides the Unicode-matcher constants inherited by UnicodeFilter.

UnicodeMatcher

Contains Unicode matching-result codes and the character marker for text outside the matching context.

UnicodeSet

A mutable set of Unicode characters and multicharacter strings.

UnicodeSet.ComparisonStyle

Comparison style enums used by UnicodeSet#compareTo(UnicodeSet, ComparisonStyle).

UnicodeSet.EntryRange

A struct-like class used for iteration through ranges, for faster iteration than by String.

UnicodeSet.SpanCondition

Argument values for whether span() and similar functions continue while the current character is contained vs. not contained in the set.

UnicodeSetIterator

UnicodeSetIterator iterates over the contents of a UnicodeSet.

UnicodeSetSpanner

A helper class used to count, replace, and trim CharSequences based on UnicodeSet matches.

UnicodeSetSpanner.CountMethod

Options for replaceFrom and countIn to control how to treat each matched span.

UnicodeSetSpanner.TrimOption

Options for the trim() method

Interfaces

Name Description
Collator.IReorderCodes

Reordering codes for non-script groups that can be reordered under collation.

IFormattedValue

An abstract formatted value: a string with associated field attributes.

IReplaceable

Replaceable is an interface representing a string of characters that supports the replacement of a range of itself with a new string of characters.

ISymbolTable

An interface that defines both lookup protocol and parsing of symbolic names.

IUnicodeMatcher

UnicodeMatcher defines a protocol for objects that can match a range of characters in a Replaceable string.

Enums

Name Description
BidiOptions

Defines base-direction values, a missing-position result, and options for bidirectional reordering.

BreakKind

Identifies the type of text boundary located by a break iterator.

BreakWord

Defines word-boundary status ranges for numbers, letters, kana, ideographs, and text outside these groups.

CollationKeyBoundMode

Specifies the lower or upper limit to derive from a collation key for range searches.

CollationStrength

Specifies the level of text differences considered when comparing collation keys or strings.

CollatorDecompositionMode

Defines collation decomposition settings and the legacy full-decomposition compatibility value.

CurrencySpacing

Identifies the currency characters, surrounding characters, or insertion text in a currency-spacing rule.

DateFormatField

Identifies a date, time, or time-zone field within formatted date text.

DateFormatStyle

Defines date and time format lengths, relative-date variants, and the value for omitting a date or time component.

DateFormatSymbolContext

Selects date symbol names for use within a date format or on their own.

DateFormatSymbolWidth

Selects wide, abbreviated, short, or narrow date symbol names.

DateTimeAddPatternResult

Defines success and conflict status codes for adding a date-time pattern.

DateTimePatternField

Identifies a date-time field for pattern generation and field-name lookup.

DateTimePatternMatchOptions

Specifies which field lengths a generated date-time pattern must match to the requested skeleton.

DirectionOptions

Selects forward or reverse transliteration rules.

IDNAOptions

Specifies validation and conversion options for internationalized domain names.

NormalizerCompareOptions

Controls case folding, character ordering, and the input-normalization assumption for canonical-equivalence comparisons.

NumberFormatField

Identifies the integer or fractional part of a formatted number.

NumberFormatStyles

Selects number, integer, percentage, scientific, or currency formatting conventions.

PadPosition

Selects where padding is inserted relative to a formatted number's prefix and suffix.

StringPrepParseExceptionError

Identifies the validation or size error reported by a string-preparation parse exception.

UnicodeMatchResult

Reports a complete match, a possible incomplete match, or a mismatch in Unicode text.

UnicodeSetOptions

Controls whitespace handling and case expansion when interpreting Unicode set patterns.