icu library

Classes

Bcp47ToIanaMapper
An object capable of mapping from a BCP-47 time zone ID to an IANA ID.
Bidi
An ICU4X Bidi object, containing loaded bidi data
BidiInfo
An object containing bidi information for a given string, produced by for_text() on Bidi
BidiParagraph
Bidi information for a single processed paragraph
Calendar
See the Rust documentation for AnyCalendar for more information.
CanonicalCombiningClassMap
Lookup of the Canonical_Combining_Class Unicode property
CanonicalComposition
The raw canonical composition operation.
CanonicalDecomposition
The raw (non-recursive) canonical decomposition operation.
CaseMapCloser
See the Rust documentation for CaseMapCloser for more information.
CaseMapper
See the Rust documentation for CaseMapper for more information.
CodePointMapData16
An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.
CodePointMapData8
An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.
CodePointRangeIterator
An iterator over code point ranges, produced by CodePointSetData or one of the CodePointMapData types
CodePointRangeIteratorResult
Result of a single iteration of `CodePointRangeIterator`. Logically can be considered to be an Option<RangeInclusive<u32>>,
CodePointSetBuilder
See the Rust documentation for CodePointInversionListBuilder for more information.
CodePointSetData
An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property.
Collator
See the Rust documentation for Collator for more information.
CollatorOptions
See the Rust documentation for CollatorOptions for more information.
ComposingNormalizer
See the Rust documentation for ComposingNormalizer for more information.
CustomTimeZone
See the Rust documentation for CustomTimeZone for more information.
DataProvider
An ICU4X data provider, capable of loading ICU4X data keys from some source.
Date
An ICU4X Date object capable of containing a date and time for any calendar.
DateFormatter
An ICU4X DateFormatter object capable of formatting a `Date` as a string, using some calendar specified at runtime in the locale.
DateTime
An ICU4X DateTime object capable of containing a date and time for any calendar.
DateTimeFormatter
An ICU4X DateFormatter object capable of formatting a `DateTime` as a string, using some calendar specified at runtime in the locale.
Decomposed
The outcome of non-recursive canonical decomposition of a character. second will be NUL when the decomposition expands to a single character (which may or may not be the original one)
DecomposingNormalizer
See the Rust documentation for DecomposingNormalizer for more information.
DisplayNamesOptions
See the Rust documentation for DisplayNamesOptions for more information.
FixedDecimal
See the Rust documentation for FixedDecimal for more information.
FixedDecimalFormatter
An ICU4X Fixed Decimal Format object, capable of formatting a `FixedDecimal` as a string.
GeneralCategoryNameToMaskMapper
A type capable of looking up General Category mask values from a string name.
GraphemeClusterBreakIteratorLatin1
See the Rust documentation for GraphemeClusterBreakIterator for more information.
GraphemeClusterBreakIteratorUtf16
See the Rust documentation for GraphemeClusterBreakIterator for more information.
GraphemeClusterBreakIteratorUtf8
See the Rust documentation for GraphemeClusterBreakIterator for more information.
GraphemeClusterSegmenter
An ICU4X grapheme-cluster-break segmenter, capable of finding grapheme cluster breakpoints in strings.
GregorianDateFormatter
An ICU4X TypedDateFormatter object capable of formatting a `IsoDateTime` as a string, using the Gregorian Calendar.
GregorianDateTimeFormatter
An ICU4X TypedDateTimeFormatter object capable of formatting a `IsoDateTime` as a string, using the Gregorian Calendar.
GregorianZonedDateTimeFormatter
An object capable of formatting a date time with time zone to a string.
IanaToBcp47Mapper
An object capable of mapping from an IANA time zone ID to a BCP-47 ID.
IsoDate
An ICU4X Date object capable of containing a ISO-8601 date
IsoDateTime
An ICU4X DateTime object capable of containing a ISO-8601 date and time.
IsoTimeZoneOptions
LineBreakIteratorLatin1
See the Rust documentation for LineBreakIterator for more information.
LineBreakIteratorUtf16
See the Rust documentation for LineBreakIterator for more information.
LineBreakIteratorUtf8
See the Rust documentation for LineBreakIterator for more information.
LineBreakOptions
See the Rust documentation for LineBreakOptions for more information.
LineSegmenter
An ICU4X line-break segmenter, capable of finding breakpoints in strings.
ListFormatter
See the Rust documentation for ListFormatter for more information.
Locale
An ICU4X Locale, capable of representing strings like "en-US".
LocaleCanonicalizer
A locale canonicalizer.
LocaleDirectionality
See the Rust documentation for LocaleDirectionality for more information.
LocaleDisplayNamesFormatter
See the Rust documentation for LocaleDisplayNamesFormatter for more information.
LocaleExpander
A locale expander.
LocaleFallbackConfig
Collection of configurations for the ICU4X fallback algorithm.
LocaleFallbacker
An object that runs the ICU4X locale fallback algorithm.
LocaleFallbackerWithConfig
An object that runs the ICU4X locale fallback algorithm with specific configurations.
LocaleFallbackIterator
An iterator over the locale under fallback.
Logger
An object allowing control over the logging used
MeasureUnit
An ICU4X Measurement Unit object which represents a single unit of measurement such as meter, second, kilometer-per-hour, square-meter, etc.
MeasureUnitParser
An ICU4X Measurement Unit parser object which is capable of parsing the CLDR unit identifier (e.g. meter-per-square-second) and get the `MeasureUnit`.
MetazoneCalculator
An object capable of computing the metazone from a timezone.
PluralCategories
PluralOperands
See the Rust documentation for PluralOperands for more information.
PluralRules
See the Rust documentation for PluralRules for more information.
PropertyValueNameToEnumMapper
A type capable of looking up a property value from a string name.
RegionDisplayNames
See the Rust documentation for RegionDisplayNames for more information.
ReorderedIndexMap
Thin wrapper around a vector that maps visual indices to source indices
ResolvedCollatorOptions
See the Rust documentation for ResolvedCollatorOptions for more information.
ScriptExtensionsSet
An object that represents the Script_Extensions property for a single character
ScriptWithExtensions
An ICU4X ScriptWithExtensions map object, capable of holding a map of codepoints to scriptextensions values
ScriptWithExtensionsBorrowed
A slightly faster ICU4XScriptWithExtensions object
SentenceBreakIteratorLatin1
See the Rust documentation for SentenceBreakIterator for more information.
SentenceBreakIteratorUtf16
See the Rust documentation for SentenceBreakIterator for more information.
SentenceBreakIteratorUtf8
See the Rust documentation for SentenceBreakIterator for more information.
SentenceSegmenter
An ICU4X sentence-break segmenter, capable of finding sentence breakpoints in strings.
Time
An ICU4X Time object representing a time in terms of hour, minute, second, nanosecond
TimeFormatter
An ICU4X TimeFormatter object capable of formatting an `Time` type (and others) as a string
TimeZoneFormatter
An ICU4X TimeZoneFormatter object capable of formatting an `CustomTimeZone` type (and others) as a string
TitlecaseMapper
See the Rust documentation for TitlecaseMapper for more information.
TitlecaseOptions
See the Rust documentation for TitlecaseOptions for more information.
UnicodeSetData
An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property.
UnitsConverter
An ICU4X Units Converter object, capable of converting between two `MeasureUnit`s.
UnitsConverterFactory
An ICU4X Units Converter Factory object, capable of creating converters a `UnitsConverter` for converting between two `MeasureUnit`s. Also, it can parse the CLDR unit identifier (e.g. meter-per-square-second) and get the `MeasureUnit`.
WeekCalculator
A Week calculator, useful to be passed in to week_of_year() on Date and DateTime types
WeekendContainsDay
Documents which days of the week are considered to be a part of the weekend
WeekOf
See the Rust documentation for WeekOf for more information.
WordBreakIteratorLatin1
See the Rust documentation for WordBreakIterator for more information.
WordBreakIteratorUtf16
See the Rust documentation for WordBreakIterator for more information.
WordBreakIteratorUtf8
See the Rust documentation for WordBreakIterator for more information.
WordSegmenter
An ICU4X word-break segmenter, capable of finding word breakpoints in strings.
ZonedDateTimeFormatter
An object capable of formatting a date time with time zone to a string.

Enums

AnyCalendarKind
The various calendar types currently supported by `Calendar`
BidiDirection
CollatorAlternateHandling
See the Rust documentation for AlternateHandling for more information.
CollatorBackwardSecondLevel
See the Rust documentation for BackwardSecondLevel for more information.
CollatorCaseFirst
See the Rust documentation for CaseFirst for more information.
CollatorCaseLevel
See the Rust documentation for CaseLevel for more information.
CollatorMaxVariable
See the Rust documentation for MaxVariable for more information.
CollatorNumeric
See the Rust documentation for Numeric for more information.
CollatorStrength
See the Rust documentation for Strength for more information.
DateLength
See the Rust documentation for Date for more information.
DisplayNamesFallback
See the Rust documentation for Fallback for more information.
DisplayNamesStyle
See the Rust documentation for Style for more information.
Error
A common enum for errors that ICU4X may return, organized by API
FixedDecimalGroupingStrategy
See the Rust documentation for GroupingStrategy for more information.
FixedDecimalSign
The sign of a FixedDecimal, as shown in formatting.
FixedDecimalSignDisplay
ECMA-402 compatible sign display preference.
IsoTimeZoneFormat
See the Rust documentation for IsoFormat for more information.
IsoTimeZoneMinuteDisplay
See the Rust documentation for IsoMinutes for more information.
IsoTimeZoneSecondDisplay
See the Rust documentation for IsoSeconds for more information.
IsoWeekday
LanguageDisplay
See the Rust documentation for LanguageDisplay for more information.
LeadingAdjustment
See the Rust documentation for LeadingAdjustment for more information.
LineBreakStrictness
See the Rust documentation for LineBreakStrictness for more information.
LineBreakWordOption
See the Rust documentation for LineBreakWordOption for more information.
ListLength
See the Rust documentation for ListLength for more information.
LocaleDirection
See the Rust documentation for Direction for more information.
LocaleFallbackPriority
Priority mode for the ICU4X fallback algorithm.
LocaleFallbackSupplement
What additional data is required to load when performing fallback.
PluralCategory
See the Rust documentation for PluralCategory for more information.
RoundingIncrement
Increment used in a rounding operation.
SegmenterWordType
See the Rust documentation for WordType for more information.
TimeLength
See the Rust documentation for Time for more information.
TrailingCase
See the Rust documentation for TrailingCase for more information.
TransformResult
See the Rust documentation for TransformResult for more information.
WeekRelativeUnit
See the Rust documentation for RelativeUnit for more information.

Typedefs

Rune = int
A Rune is a Unicode code point, such as a, or 💡.