ICU 78.1 78.1 |
Namespaces | |
| NoUnit | |
| Dimensionless unit for percent and permille. | |
Data Structures | |
| class | Appendable |
| Base class for objects to which Unicode characters and strings can be appended.More... | |
| class | UnicodeStringAppendable |
| AnAppendable implementation which writes to aUnicodeString.More... | |
| class | BreakIterator |
| TheBreakIterator class implements methods for finding the location of boundaries in text.More... | |
| class | ByteSink |
| AByteSink can be filled with bytes.More... | |
| class | CheckedArrayByteSink |
| Implementation ofByteSink that writes to a flat byte array, with bounds-checking: This sink will not write more than capacity bytes to outbuf.More... | |
| class | StringByteSink |
| Implementation ofByteSink that writes to a "string".More... | |
| class | BytesTrie |
| Light-weight, non-const reader class for aBytesTrie.More... | |
| class | BytesTrieBuilder |
| Builder class forBytesTrie.More... | |
| class | CanonicalIterator |
| This class allows one to iterate through all the strings that are canonically equivalent to a given string.More... | |
| class | CaseMap |
| Low-level C++ case mapping functions.More... | |
| class | Char16Ptr |
| char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.More... | |
| class | ConstChar16Ptr |
| const char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.More... | |
| class | ForwardCharacterIterator |
| Abstract class that defines an API for forward-only iteration on text objects.More... | |
| class | CharacterIterator |
| Abstract class that defines an API for iteration on text objects.More... | |
| class | DateInterval |
| This class represents a date interval.More... | |
| class | Edits |
| Records lengths of string edits but not replacement text.More... | |
| class | ErrorCode |
| Wrapper class for UErrorCode, with conversion operators for direct use in ICU C and C++ APIs.More... | |
| class | FilteredBreakIteratorBuilder |
| The BreakIteratorFilter is used to modify the behavior of aBreakIterator by constructing a newBreakIterator which suppresses certain segment boundaries.More... | |
| class | IDNA |
| Abstract base class forIDNA processing.More... | |
| class | IDNAInfo |
| Output container forIDNA processing errors.More... | |
| class | LocaleBuilder |
LocaleBuilder is used to build instances ofLocale from values configured by the setters.More... | |
| class | LocaleMatcher |
| Immutable class that picks the best match between a user's desired locales and an application's supported locales.More... | |
| class | LocalPointerBase |
| "Smart pointer" base class; do not use directly: useLocalPointer etc.More... | |
| class | LocalPointer |
| "Smart pointer" class, deletes objects via the standard C++ delete operator.More... | |
| class | LocalArray |
| "Smart pointer" class, deletes objects via the C++ array delete[] operator.More... | |
| class | LocaleDisplayNames |
| Returns display names of Locales and components of Locales.More... | |
| class | Locale |
ALocale object represents a specific geographical, political, or cultural region.More... | |
| class | MessagePattern |
| Parses and represents ICUMessageFormat patterns.More... | |
| class | Normalizer2 |
| Unicode normalization functionality for standard Unicode normalization or for using custom mapping tables.More... | |
| class | FilteredNormalizer2 |
| Normalization filtered by aUnicodeSet.More... | |
| class | Normalizer |
| Old Unicode normalization API.More... | |
| class | ParsePosition |
ParsePosition is a simple class used byFormat and its subclasses to keep track of the current position during parsing.More... | |
| class | ExternalBreakEngine |
| TheExternalBreakEngine class define an abstract interface for the host environment to provide a low level facility to break text for unicode text in script that the text boundary cannot be handled by upper level rule based logic, for example, for Chinese and Japanese word breaking, Thai, Khmer, Burmese, Lao and other Southeast Asian scripts.More... | |
| class | RuleBasedBreakIterator |
| A subclass ofBreakIterator whose behavior is specified using a list of rules.More... | |
| class | Replaceable |
Replaceable is an abstract base class representing a string of characters that supports the replacement of a range of itself with a new string of characters.More... | |
| class | ResourceBundle |
| A class representing a collection of resource information pertaining to a given locale.More... | |
| class | StringCharacterIterator |
| A concrete subclass ofCharacterIterator that iterates over the characters (code units or code points) in aUnicodeString.More... | |
| class | SimpleFormatter |
| Formats simple patterns like "{1} was born in {0}".More... | |
| class | StringEnumeration |
| Base class for 'pure' C++ implementations of uenum api.More... | |
| class | StringPiece |
| A string-like object that points to a sized piece of memory.More... | |
| class | SymbolTable |
| An interface that defines both lookup protocol and parsing of symbolic names.More... | |
| class | UCharsTrie |
| Light-weight, non-const reader class for aUCharsTrie.More... | |
| class | UCharsTrieBuilder |
| Builder class forUCharsTrie.More... | |
| class | UCharCharacterIterator |
| A concrete subclass ofCharacterIterator that iterates over the characters (code units or code points) in a char16_t array.More... | |
| class | UnicodeFilter |
UnicodeFilter defines a protocol for selecting a subset of the full range (U+0000 to U+10FFFF) of Unicode characters.More... | |
| class | UnicodeFunctor |
UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on Unicode strings.More... | |
| class | UnicodeMatcher |
UnicodeMatcher defines a protocol for objects that can match a range of characters in aReplaceable string.More... | |
| class | UnicodeSet |
| A mutable set of Unicode characters and multicharacter strings.More... | |
| class | UnicodeString |
| UnicodeString is a string class that stores Unicode characters directly and provides similar functionality as the Java String and StringBuffer/StringBuilder classes.More... | |
| class | UMemory |
| UMemory is the common ICU base class.More... | |
| class | UObject |
| UObject is the common ICU "boilerplate" class.More... | |
| class | UnicodeSetIterator |
| UnicodeSetIterator iterates over the contents of aUnicodeSet.More... | |
| class | AlphabeticIndex |
| AlphabeticIndex supports the creation of a UI index appropriate for a given language.More... | |
| class | BasicTimeZone |
BasicTimeZone is an abstract class extendingTimeZone.More... | |
| class | Calendar |
Calendar is an abstract base class for converting between aUDate object and a set of integer fields such asYEAR,MONTH,DAY,HOUR, and so on.More... | |
| class | ChoiceFormat |
| ChoiceFormat converts between ranges of numeric values and strings for those ranges.More... | |
| class | CollationElementIterator |
| TheCollationElementIterator class is used as an iterator to walk through each character of an international string.More... | |
| class | Collator |
TheCollator class performs locale-sensitive string comparison.More... | |
| class | CollatorFactory |
| A factory, used with registerFactory, the creates multiple collators and provides display names for them.More... | |
| class | CompactDecimalFormat |
| IMPORTANT: New users are strongly encouraged to see ifnumberformatter.h fits their use case.More... | |
| class | CurrencyAmount |
| A currency together with a numeric amount, such as 200 USD.More... | |
| class | CurrencyPluralInfo |
| This class represents the information needed byDecimalFormat to format currency plural, such as "3.00 US dollars" or "1.00 US dollar".More... | |
| class | CurrencyUnit |
| A unit of currency, such as USD (U.S.More... | |
| class | DateFormat |
| DateFormat is an abstract class for a family of classes that convert dates and times from their internal representations to textual form and back again in a language-independent manner.More... | |
| class | DecimalFormatSymbols |
| This class represents the set of symbols needed byDecimalFormat to format numbers.More... | |
| class | DecimalFormat |
| IMPORTANT: New users are strongly encouraged to see ifnumberformatter.h fits their use case.More... | |
| class | DisplayOptions |
| Represents all the display options that are supported by CLDR such as grammatical case, noun class, ...More... | |
| class | DateFormatSymbols |
| DateFormatSymbols is a public class for encapsulating localizable date-time formatting data – including timezone data.More... | |
| class | FormattedDateInterval |
| An immutable class containing the result of a date interval formatting operation.More... | |
| class | DateIntervalFormat |
| DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent manner.More... | |
| class | DateIntervalInfo |
| DateIntervalInfo is a public class for encapsulating localizable date time interval patterns.More... | |
| class | DateTimePatternGenerator |
| This class provides flexible generation of date format patterns, like "yy-MM-dd".More... | |
| class | DateTimeRule |
DateTimeRule is a class representing a time in a year by a rule specified by month, day of month, day of week and time in the day.More... | |
| class | FieldPosition |
FieldPosition is a simple class used byFormat and its subclasses to identify fields in formatted output.More... | |
| class | Formattable |
| Formattable objects can be passed to theFormat class or its subclasses for formatting.More... | |
| class | Format |
| Base class for all formats.More... | |
| class | ConstrainedFieldPosition |
| Represents a span of a string containing a given field.More... | |
| class | FormattedValue |
| An abstract formatted value: a string with associated field attributes.More... | |
| class | FieldPositionIterator |
| FieldPositionIterator returns the field ids and their start/limit positions generated by a call toFormat::format.More... | |
| class | GenderInfo |
| GenderInfo computes the gender of a list as a whole given the gender of each element.More... | |
| class | GregorianCalendar |
| Concrete class which provides the standard calendar used by most of the world.More... | |
| class | FormattedList |
| An immutable class containing the result of a list formatting operation.More... | |
| class | ListFormatter |
| An immutable class for formatting a list, using data from CLDR (or supplied separately).More... | |
| class | MeasureFormat |
| class | MeasureUnit |
| A unit such as length, mass, volume, currency, etc.More... | |
| class | Measure |
| An amount of a specified unit, consisting of a number and a Unit.More... | |
| class | MessageFormat |
| class | NumberFormat |
| class | NumberFormatFactory |
| ANumberFormatFactory is used to register new number formats.More... | |
| class | SimpleNumberFormatFactory |
| ANumberFormatFactory that supports a single locale.More... | |
| class | NumberingSystem |
| Defines numbering systems.More... | |
| class | PluralFormat |
| class | PluralRules |
| Defines rules for mapping non-negative numeric values onto a small set of keywords.More... | |
| class | RuleBasedNumberFormat |
| TheRuleBasedNumberFormat class formats numbers according to a set of rules.More... | |
| class | RuleBasedTimeZone |
| aBasicTimeZone subclass implemented in terms ofInitialTimeZoneRule andTimeZoneRule instancesMore... | |
| class | RegexPattern |
ClassRegexPattern represents a compiled regular expression.More... | |
| class | RegexMatcher |
| classRegexMatcher bundles together a regular expression pattern and input text to which the expression can be applied.More... | |
| class | Region |
Region is the class representing a UnicodeRegion Code, also known as a UnicodeRegion Subtag, which is defined based upon the BCP 47 standard.More... | |
| class | FormattedRelativeDateTime |
| An immutable class containing the result of a relative datetime formatting operation.More... | |
| class | RelativeDateTimeFormatter |
| Formats simple relative dates.More... | |
| class | ScientificNumberFormatter |
| A formatter that formats numbers in user-friendly scientific notation.More... | |
| class | SearchIterator |
SearchIterator is an abstract base class that provides methods to search for a pattern within a text string.More... | |
| class | SelectFormat |
| class | SimpleTimeZone |
SimpleTimeZone is a concrete subclass ofTimeZone that represents a time zone for use with a Gregorian calendar.More... | |
| class | SimpleDateFormat |
| SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manner.More... | |
| class | CollationKey |
| Collation keys are generated by theCollator class.More... | |
| class | StringSearch |
StringSearch is aSearchIterator that provides language-sensitive text searching based on the comparison rules defined in aRuleBasedCollator object.More... | |
| class | RuleBasedCollator |
| TheRuleBasedCollator class provides the implementation ofCollator, using data-driven tables.More... | |
| class | TimeZone |
TimeZone represents a time zone offset, and also figures out daylight savings.More... | |
| class | TimeUnit |
| Measurement unit for time units.More... | |
| class | TimeUnitAmount |
| Express a duration as a time unit and number.More... | |
| class | TimeUnitFormat |
| Format or parse aTimeUnitAmount, using plural rules for the units where available.More... | |
| class | Transliterator |
Transliterator is an abstract class that transliterates text from one format to another.More... | |
| class | TimeZoneFormat |
TimeZoneFormat supports time zone display name formatting and parsing.More... | |
| class | TimeZoneNames |
TimeZoneNames is an abstract class representing the time zone display name data model defined byUTS#35 Unicode Locale Data Markup Language (LDML).More... | |
| class | TimeZoneRule |
TimeZoneRule is a class representing a rule for time zone.More... | |
| class | InitialTimeZoneRule |
InitialTimeZoneRule represents a time zone rule representing a time zone effective from the beginning and has no actual start times.More... | |
| class | AnnualTimeZoneRule |
AnnualTimeZoneRule is a class used for representing a time zone rule which takes effect annually.More... | |
| class | TimeArrayTimeZoneRule |
TimeArrayTimeZoneRule represents a time zone rule whose start times are defined by an array of milliseconds since the standard base time.More... | |
| class | TimeZoneTransition |
TimeZoneTransition is a class representing a time zone transition.More... | |
| class | UnicodeReplacer |
UnicodeReplacer defines a protocol for objects that replace a range of characters in aReplaceable string with output text.More... | |
| class | VTimeZone |
VTimeZone is a class implementing RFC2445 VTIMEZONE.More... | |
| class | ParagraphLayout |
| ParagraphLayout.More... | |
| class | RunArray |
TheRunArray class is a base class for building classes which represent data that is associated with runs of text.More... | |
| class | FontRuns |
TheFontRuns class associates pointers toLEFontInstance objects with runs of text.More... | |
| class | LocaleRuns |
TheLocaleRuns class associates pointers toLocale objects with runs of text.More... | |
| class | ValueRuns |
TheValueRuns class associates integer values with runs of text.More... | |
Typedefs | |
| typedefRuleBasedBreakIterator | DictionaryBasedBreakIterator |
| An obsolete subclass ofRuleBasedBreakIterator.More... | |
| typedef int32_t | UFieldResolutionTable[12][8] |
| typedef enumicu::UMeasurePrefix | UMeasurePrefix |
| Enumeration for SI and binary prefixes, e.g.More... | |
Enumerations | |
| enum | UMatchDegree {U_MISMATCH,U_PARTIAL_MATCH,U_MATCH } |
Constants returned byUnicodeMatcher::matches() indicating the degree of match.More... | |
| enum | UMeasureUnitComplexity {UMEASURE_UNIT_SINGLE,UMEASURE_UNIT_COMPOUND,UMEASURE_UNIT_MIXED } |
| Enumeration for unit complexity.More... | |
| enum | UMeasurePrefix { UMEASURE_PREFIX_ONE = 30 + 0,UMEASURE_PREFIX_YOTTA = UMEASURE_PREFIX_ONE + 24,UMEASURE_PREFIX_RONNA = UMEASURE_PREFIX_ONE + 27,UMEASURE_PREFIX_QUETTA = UMEASURE_PREFIX_ONE + 30, UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_QUETTA,UMEASURE_PREFIX_ZETTA = UMEASURE_PREFIX_ONE + 21,UMEASURE_PREFIX_EXA = UMEASURE_PREFIX_ONE + 18,UMEASURE_PREFIX_PETA = UMEASURE_PREFIX_ONE + 15, UMEASURE_PREFIX_TERA = UMEASURE_PREFIX_ONE + 12,UMEASURE_PREFIX_GIGA = UMEASURE_PREFIX_ONE + 9,UMEASURE_PREFIX_MEGA = UMEASURE_PREFIX_ONE + 6,UMEASURE_PREFIX_KILO = UMEASURE_PREFIX_ONE + 3, UMEASURE_PREFIX_HECTO = UMEASURE_PREFIX_ONE + 2,UMEASURE_PREFIX_DEKA = UMEASURE_PREFIX_ONE + 1,UMEASURE_PREFIX_DECI = UMEASURE_PREFIX_ONE + -1,UMEASURE_PREFIX_CENTI = UMEASURE_PREFIX_ONE + -2, UMEASURE_PREFIX_MILLI = UMEASURE_PREFIX_ONE + -3,UMEASURE_PREFIX_MICRO = UMEASURE_PREFIX_ONE + -6,UMEASURE_PREFIX_NANO = UMEASURE_PREFIX_ONE + -9,UMEASURE_PREFIX_PICO = UMEASURE_PREFIX_ONE + -12, UMEASURE_PREFIX_FEMTO = UMEASURE_PREFIX_ONE + -15,UMEASURE_PREFIX_ATTO = UMEASURE_PREFIX_ONE + -18,UMEASURE_PREFIX_ZEPTO = UMEASURE_PREFIX_ONE + -21,UMEASURE_PREFIX_YOCTO = UMEASURE_PREFIX_ONE + -24, UMEASURE_PREFIX_RONTO = UMEASURE_PREFIX_ONE + -27,UMEASURE_PREFIX_QUECTO = UMEASURE_PREFIX_ONE + -30,UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_QUECTO,UMEASURE_PREFIX_INTERNAL_ONE_BIN = -60, UMEASURE_PREFIX_KIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 1,UMEASURE_PREFIX_INTERNAL_MIN_BIN = UMEASURE_PREFIX_KIBI,UMEASURE_PREFIX_MEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 2,UMEASURE_PREFIX_GIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 3, UMEASURE_PREFIX_TEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 4,UMEASURE_PREFIX_PEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 5,UMEASURE_PREFIX_EXBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 6,UMEASURE_PREFIX_ZEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 7, UMEASURE_PREFIX_YOBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 8,UMEASURE_PREFIX_INTERNAL_MAX_BIN = UMEASURE_PREFIX_YOBI } |
| Enumeration for SI and binary prefixes, e.g.More... | |
| enum | URBNFRuleSetTag { URBNF_SPELLOUT,URBNF_ORDINAL,URBNF_DURATION,URBNF_NUMBERING_SYSTEM = 3, URBNF_COUNT } |
| Tags for the predefined rulesets.More... | |
Functions | |
| void | locale_available_init () |
| U_COMMON_APIUBool | operator== (constStringPiece &x, constStringPiece &y) |
| Global operator == forStringPiece.More... | |
| bool | operator!= (constStringPiece &x, constStringPiece &y) |
| Global operator != forStringPiece.More... | |
| U_COMMON_APIUnicodeString | operator+ (constUnicodeString &s1, constUnicodeString &s2) |
| Creates a newUnicodeString from the concatenation of two others.More... | |
| template<typename S , typename = std::enable_if_t<ConvertibleToU16StringView<S>>> | |
| UnicodeString | operator+ (constUnicodeString &s1, const S &s2) |
Creates a newUnicodeString from the concatenation of aUnicodeString ands2 which is, or which is implicitly convertible to, a std::u16string_view or (if U_SIZEOF_WCHAR_T==2) std::wstring_view.More... | |
| U_COMMON_APIUnicodeString | unistr_internalConcat (constUnicodeString &s1, std::u16string_view s2) |
| UnicodeString | ures_getUnicodeString (constUResourceBundle *resB,UErrorCode *status) |
| Returns the string value from a string resource bundle.More... | |
| UnicodeString | ures_getNextUnicodeString (UResourceBundle *resB, const char **key,UErrorCode *status) |
| Returns the next string in a resource, or an empty string if there are no more resources to iterate over.More... | |
| UnicodeString | ures_getUnicodeStringByIndex (constUResourceBundle *resB, int32_t indexS,UErrorCode *status) |
| Returns the string in a given resource array or table at the specified index.More... | |
| UnicodeString | ures_getUnicodeStringByKey (constUResourceBundle *resB, const char *key,UErrorCode *status) |
| Returns a string in a resource that has a given key.More... | |
| void | GenderInfo_initCache (UErrorCode &status) |
| U_CAPI int32_t | umeas_getPrefixBase (UMeasurePrefix unitPrefix) |
| Returns the base of the factor associated with the given unit prefix: the base is 10 for SI prefixes (kilo, micro) and 1024 for binary prefixes (kibi, mebi).More... | |
| U_CAPI int32_t | umeas_getPrefixPower (UMeasurePrefix unitPrefix) |
| Returns the exponent of the factor associated with the given unit prefix, for example 3 for kilo, -6 for micro, 1 for kibi, 2 for mebi, 3 for gibi.More... | |
| U_IO_API std::ostream & | operator<< (std::ostream &stream, constUnicodeString &s) |
| Write the contents of aUnicodeString to a C++ ostream.More... | |
| U_IO_API std::istream & | operator>> (std::istream &stream,UnicodeString &s) |
| Write the contents from a C++ istream to aUnicodeString.More... | |
Variables | |
| template<typename T > | |
| constexpr bool | ConvertibleToU16StringView |
| Is T convertible to a std::u16string_view or some other 16-bit string view?More... | |
| constexpr const size_t | kInternalNumSysNameCapacity = 8 |
| Size of a numbering system name.More... | |
Filecoll.h.
Filetblcoll.h.
Created by: Helena Shih
Modification History:
Date Name Description 02/5/97 aliu Modified createDefault to load collation data from binary files when possible. Added related methods createCollationFromFile, chopLocale, createPathName. 02/11/97 aliu Added members addToCache, findInCache, and fgCache. 02/12/97 aliu Modified to create objects fromRuleBasedCollator cache. Moved cache out of Collation class. 02/13/97 aliu Moved several methods out of this class and intoRuleBasedCollator, with modifications. Modified createDefault() to call new RuleBasedCollator(Locale&) constructor. General clean up and documentation. 02/20/97 helena Added clone, operator==, operator!=, operator=, copy constructor and getDynamicClassID. 03/25/97 helena Updated with platform independent data types. 05/06/97 helena Added memory allocation error detection. 06/20/97 helena Java class name change. 09/03/97 helena Added createCollationKeyValues(). 02/10/98 damiba Added compare() with length as parameter. 04/23/99 stephen Removed EDecompositionMode, merged with Normalizer::EMode. 11/02/99 helenaCollator performance enhancements. Eliminates theUnicodeString construction and special case for NO_OP. 11/23/99 srl More performance enhancements. Inlining of critical accessors. 05/15/00 helena Added version information API. 01/29/01 synwee Modified into a C++ wrapper which calls C apis (ucol.h). 2012-2014 markus Rewritten in C++ again.
Created by: Helena Shih
Modification History:
Date Name Description 2/5/97 aliu Added streamIn and streamOut methods. Added constructor which readsRuleBasedCollator object from a binary file. Added writeToFile method which streamsRuleBasedCollator out to a binary file. The streamIn and streamOut methods use istream and ostream objects in binary mode. 2/12/97 aliu Modified to use TableCollationData sub-object to hold invariant data. 2/13/97 aliu Moved several methods into this class from Collation. Added a private RuleBasedCollator(Locale&) constructor, to be used by Collator::createDefault(). General clean up. 2/20/97 helena Added clone, operator==, operator!=, operator=, and copy constructor and getDynamicClassID. 3/5/97 aliu Modified constructFromFile() to add parameter specifying whether or not binary loading is to be attempted. This is required for dynamic rule loading. 05/07/97 helena Added memory allocation error detection. 6/17/97 helena Added IDENTICAL strength for compare, changed getRules to use MergeCollation::getPattern. 6/20/97 helena Java class name change. 8/18/97 helena Added internal API documentation. 09/03/97 helena Added createCollationKeyValues(). 02/10/98 damiba Added compare with "length" parameter 08/05/98 erm Synched with 1.2 version of RuleBasedCollator.java 04/23/99 stephen Removed EDecompositionMode, merged with Normalizer::EMode 06/14/99 stephen Removed kResourceBundleSuffix 11/02/99 helenaCollator performance enhancements. Eliminates theUnicodeString construction and special case for NO_OP. 11/23/99 srl More performance enhancements. Updates to NormalizerIterator internal state management. 12/15/99 aliu Update to support Thai collation. Move NormalizerIterator to implementation file. 01/29/01 synwee Modified into a C++ wrapper which calls C API (ucol.h) 2012-2014 markus Rewritten in C++ again.
An obsolete subclass ofRuleBasedBreakIterator.
Handling of dictionary- based break iteration has been folded into the base class. This class is deprecated as of ICU 3.6.
| typedef int32_t icu::UFieldResolutionTable[12][8] |
| typedef enumicu::UMeasurePrefixicu::UMeasurePrefix |
Enumeration for SI and binary prefixes, e.g.
"kilo-", "nano-", "mebi-".
Enum values should be treated as opaque: useumeas_getPrefixPower() andumeas_getPrefixBase() to find their corresponding values.
Constants returned byUnicodeMatcher::matches() indicating the degree of match.
| Enumerator | |
|---|---|
| U_MISMATCH | Constant returned by The text contains a character which does not match, or the text does not contain all desired characters for a non-incremental match.
|
| U_PARTIAL_MATCH | Constant returned by This value is only returned for incremental match operations. All characters of the text match, but more characters are required for a complete match. Alternatively, for variable-length matchers, all characters of the text match, and if more characters were supplied at limit, they might also match.
|
| U_MATCH | Constant returned by For an incremental variable-length match, this value is returned if the given text matches, and it is known that additional characters would not alter the extent of the match.
|
Definition at line33 of fileunimatch.h.
Enumeration for SI and binary prefixes, e.g.
"kilo-", "nano-", "mebi-".
Enum values should be treated as opaque: useumeas_getPrefixPower() andumeas_getPrefixBase() to find their corresponding values.
| Enumerator | |
|---|---|
| UMEASURE_PREFIX_ONE | The absence of an SI or binary prefix. The integer representation of this enum value is an arbitrary implementation detail and should not be relied upon: useumeas_getPrefixPower() to obtain meaningful values.
|
| UMEASURE_PREFIX_YOTTA | SI prefix: yotta, 10^24.
|
| UMEASURE_PREFIX_RONNA | SI prefix: ronna, 10^27.
|
| UMEASURE_PREFIX_QUETTA | SI prefix: quetta, 10^30.
|
| UMEASURE_PREFIX_INTERNAL_MAX_SI | ICU use only. Used to determine the set of base-10 SI prefixes.
|
| UMEASURE_PREFIX_ZETTA | SI prefix: zetta, 10^21.
|
| UMEASURE_PREFIX_EXA | SI prefix: exa, 10^18.
|
| UMEASURE_PREFIX_PETA | SI prefix: peta, 10^15.
|
| UMEASURE_PREFIX_TERA | SI prefix: tera, 10^12.
|
| UMEASURE_PREFIX_GIGA | SI prefix: giga, 10^9.
|
| UMEASURE_PREFIX_MEGA | SI prefix: mega, 10^6.
|
| UMEASURE_PREFIX_KILO | SI prefix: kilo, 10^3.
|
| UMEASURE_PREFIX_HECTO | SI prefix: hecto, 10^2.
|
| UMEASURE_PREFIX_DEKA | SI prefix: deka, 10^1.
|
| UMEASURE_PREFIX_DECI | SI prefix: deci, 10^-1.
|
| UMEASURE_PREFIX_CENTI | SI prefix: centi, 10^-2.
|
| UMEASURE_PREFIX_MILLI | SI prefix: milli, 10^-3.
|
| UMEASURE_PREFIX_MICRO | SI prefix: micro, 10^-6.
|
| UMEASURE_PREFIX_NANO | SI prefix: nano, 10^-9.
|
| UMEASURE_PREFIX_PICO | SI prefix: pico, 10^-12.
|
| UMEASURE_PREFIX_FEMTO | SI prefix: femto, 10^-15.
|
| UMEASURE_PREFIX_ATTO | SI prefix: atto, 10^-18.
|
| UMEASURE_PREFIX_ZEPTO | SI prefix: zepto, 10^-21.
|
| UMEASURE_PREFIX_YOCTO | SI prefix: yocto, 10^-24.
|
| UMEASURE_PREFIX_RONTO | SI prefix: ronto, 10^-27.
|
| UMEASURE_PREFIX_QUECTO | SI prefix: quecto, 10^-30.
|
| UMEASURE_PREFIX_INTERNAL_MIN_SI | ICU use only. Used to determine the set of base-10 SI prefixes.
|
| UMEASURE_PREFIX_INTERNAL_ONE_BIN | ICU use only. Sets the arbitrary offset of the base-1024 binary prefixes' enum values.
|
| UMEASURE_PREFIX_KIBI | Binary prefix: kibi, 1024^1.
|
| UMEASURE_PREFIX_INTERNAL_MIN_BIN | ICU use only. Used to determine the set of base-1024 binary prefixes.
|
| UMEASURE_PREFIX_MEBI | Binary prefix: mebi, 1024^2.
|
| UMEASURE_PREFIX_GIBI | Binary prefix: gibi, 1024^3.
|
| UMEASURE_PREFIX_TEBI | Binary prefix: tebi, 1024^4.
|
| UMEASURE_PREFIX_PEBI | Binary prefix: pebi, 1024^5.
|
| UMEASURE_PREFIX_EXBI | Binary prefix: exbi, 1024^6.
|
| UMEASURE_PREFIX_ZEBI | Binary prefix: zebi, 1024^7.
|
| UMEASURE_PREFIX_YOBI | Binary prefix: yobi, 1024^8.
|
| UMEASURE_PREFIX_INTERNAL_MAX_BIN | ICU use only. Used to determine the set of base-1024 binary prefixes.
|
Definition at line89 of filemeasunit.h.
Enumeration for unit complexity.
There are three levels:
The complexity determines which operations are available. For example, you cannot set the power or prefix of a compound unit.
| Enumerator | |
|---|---|
| UMEASURE_UNIT_SINGLE | A single unit, like kilojoule.
|
| UMEASURE_UNIT_COMPOUND | A compound unit, like meter-per-second.
|
| UMEASURE_UNIT_MIXED | A mixed unit, like hour+minute.
|
Definition at line55 of filemeasunit.h.
Tags for the predefined rulesets.
| Enumerator | |
|---|---|
| URBNF_SPELLOUT | Requests predefined ruleset for spelling out numeric values in words.
|
| URBNF_ORDINAL | Requests predefined ruleset for the ordinal form of a number.
|
| URBNF_DURATION | Requests predefined ruleset for formatting a value as a duration in hours, minutes, and seconds.
|
| URBNF_NUMBERING_SYSTEM | Requests predefined ruleset for various non-place-value numbering systems. WARNING: The same resource contains rule sets for a variety of different numbering systems. You need to call setDefaultRuleSet() on the formatter to choose the actual numbering system.
|
| URBNF_COUNT | One more than the highest normal URBNFRuleSetTag value.
|
| void icu::GenderInfo_initCache | ( | UErrorCode & | status | ) |
This API is for internal use only. Forward Declaration
| void icu::locale_available_init | ( | ) |
This API is for internal use only.
| inline |
Global operator != forStringPiece.
| x | The firstStringPiece to compare. |
| y | The secondStringPiece to compare. |
Definition at line346 of filestringpiece.h.
| inline |
Creates a newUnicodeString from the concatenation of aUnicodeString ands2 which is, or which is implicitly convertible to, a std::u16string_view or (if U_SIZEOF_WCHAR_T==2) std::wstring_view.
| s1 | The string to be copied to the new one. |
| s2 | The string view to be copied to the new string, after s1. |
Definition at line4177 of fileunistr.h.
Referencesunistr_internalConcat().
| U_COMMON_APIUnicodeString icu::operator+ | ( | constUnicodeString & | s1, |
| constUnicodeString & | s2 | ||
| ) |
Creates a newUnicodeString from the concatenation of two others.
| s1 | The first string to be copied to the new one. |
| s2 | The second string to be copied to the new one, after s1. |
| U_IO_API std::ostream& icu::operator<< | ( | std::ostream & | stream, |
| constUnicodeString & | s | ||
| ) |
Write the contents of aUnicodeString to a C++ ostream.
This functions writes the characters in aUnicodeString to an ostream. The UChars in theUnicodeString are converted to the char based ostream with the default converter.
| U_COMMON_APIUBool icu::operator== | ( | constStringPiece & | x, |
| constStringPiece & | y | ||
| ) |
Global operator == forStringPiece.
| x | The firstStringPiece to compare. |
| y | The secondStringPiece to compare. |
Referenced byicu::BreakIterator::operator!=(),icu::Calendar::operator!=(),icu::CurrencyPluralInfo::operator!=(),icu::DateFormatSymbols::operator!=(),icu::DateIntervalInfo::operator!=(),icu::DecimalFormatSymbols::operator!=(),icu::FieldPosition::operator!=(),icu::FieldPositionIterator::operator!=(),icu::DateIntervalFormat::operator!=(),icu::Format::operator!=(),icu::Formattable::operator!=(),icu::ForwardCharacterIterator::operator!=(),icu::Locale::operator!=(),icu::MessagePattern::operator!=(),icu::Normalizer::operator!=(),icu::ParsePosition::operator!=(),icu::MessagePattern::Part::operator!=(),icu::PluralRules::operator!=(),icu::RegexPattern::operator!=(),icu::UnicodeString::operator!=(),icu::SearchIterator::operator!=(),icu::TimeZone::operator!=(),icu::TimeZoneNames::operator!=(),icu::UnicodeSet::operator!=(),icu::Measure::operator!=(), andicu::TimeUnitAmount::operator!=().
| U_IO_API std::istream& icu::operator>> | ( | std::istream & | stream, |
| UnicodeString & | s | ||
| ) |
Write the contents from a C++ istream to aUnicodeString.
The UChars in theUnicodeString are converted from the char based istream with the default converter.
| U_CAPI int32_t icu::umeas_getPrefixBase | ( | UMeasurePrefix | unitPrefix | ) |
Returns the base of the factor associated with the given unit prefix: the base is 10 for SI prefixes (kilo, micro) and 1024 for binary prefixes (kibi, mebi).
| U_CAPI int32_t icu::umeas_getPrefixPower | ( | UMeasurePrefix | unitPrefix | ) |
Returns the exponent of the factor associated with the given unit prefix, for example 3 for kilo, -6 for micro, 1 for kibi, 2 for mebi, 3 for gibi.
| U_COMMON_APIUnicodeString icu::unistr_internalConcat | ( | constUnicodeString & | s1, |
| std::u16string_view | s2 | ||
| ) |
| inline |
Returns the next string in a resource, or an empty string if there are no more resources to iterate over.
Useures_getNextString() instead to distinguish between the end of the iteration and a real empty string value.
| resB | a resource |
| key | fill in for key associated with this string |
| status | fills in the outgoing error code |
Definition at line838 of fileures.h.
Referencesicu::UnicodeString::setTo(),icu::UnicodeString::setToBogus(),U_SUCCESS, andures_getNextString().
| inline |
Returns the string value from a string resource bundle.
| resB | a resource, should have type URES_STRING |
| status | fills in the outgoing error code could beU_MISSING_RESOURCE_ERROR if the key is not found could be a non-failing error e.g.:U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING |
Definition at line813 of fileures.h.
Referencesicu::UnicodeString::setTo(),icu::UnicodeString::setToBogus(),U_SUCCESS, andures_getString().
| inline |
Returns the string in a given resource array or table at the specified index.
| resB | a resource |
| indexS | an index to the wanted string. |
| status | fills in the outgoing error code |
Definition at line860 of fileures.h.
Referencesicu::UnicodeString::setTo(),icu::UnicodeString::setToBogus(),U_SUCCESS, andures_getStringByIndex().
| inline |
Returns a string in a resource that has a given key.
This procedure works only with table resources.
| resB | a resource |
| key | a key associated with the wanted string |
| status | fills in the outgoing error code |
Definition at line883 of fileures.h.
Referencesicu::UnicodeString::setTo(),icu::UnicodeString::setToBogus(),U_SUCCESS, andures_getStringByKey().
| constexpr |
Is T convertible to a std::u16string_view or some other 16-bit string view?
This API is for internal use only.
Definition at line385 of filechar16ptr.h.