27#if !UCONFIG_NO_FORMATTING
39typedef struct UHashtable UHashtable;
44class AppendableWrapper;
325#ifndef U_HIDE_OBSOLETE_API
479 return msgPattern.getApostropheMode();
755 int32_t& count)
const;
825#ifndef U_HIDE_INTERNAL_API
865#ifndef U_HIDE_INTERNAL_API
884 int32_t formatAliasesCapacity;
897 virtual ~PluralSelectorProvider();
900 void reset(
const Locale* loc);
916 int32_t argTypeCount;
917 int32_t argTypeCapacity;
924 UBool hasArgTypeConflicts;
939 UHashtable* cachedFormatters;
940 UHashtable* customFormatArgStarts;
942 PluralSelectorProvider pluralProvider;
943 PluralSelectorProvider ordinalProvider;
959 const UChar *
const *list);
990 void format(int32_t msgStart,
995 AppendableWrapper& appendTo,
1001 void setArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
1003 void setCustomArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
1005 int32_t nextTopLevelArgStart(int32_t partIndex)
const;
1007 UBool argNameMatches(int32_t partIndex,
const UnicodeString& argName, int32_t argNumber);
1009 void cacheExplicitFormats(
UErrorCode& status);
1027 FieldPosition* updateMetaData(AppendableWrapper& dest, int32_t prevLength,
1030 Format* getCachedFormatter(int32_t argumentNumber)
const;
1032 UnicodeString getLiteralStringUntilNextArgument(int32_t from)
const;
1036 void formatComplexSubMessage(int32_t msgStart,
1037 double pluralNumber,
1041 AppendableWrapper& appendTo,
1058 listCount = argTypeCount;
1065 void resetPattern();
1072 class U_I18N_API DummyFormat :
public Format {
1075 virtual Format*
clone()
const;
1076 virtual UnicodeString&
format(
const Formattable& obj,
1077 UnicodeString& appendTo,
1079 virtual UnicodeString&
format(
const Formattable&,
1080 UnicodeString& appendTo,
1083 virtual UnicodeString&
format(
const Formattable& obj,
1084 UnicodeString& appendTo,
1085 FieldPositionIterator* posIter,
1089 ParsePosition&)
const;
1093 friend class MessageFormatAdapter;
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
A Locale object represents a specific geographical, political, or cultural region.
Parses and represents ICU MessageFormat patterns.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Defines rules for mapping non-negative numeric values onto a small set of keywords.
Base class for 'pure' C++ implementations of uenum api.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: Locale ID object.
C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns.
UMessagePatternApostropheMode
Mode for when an apostrophe starts quoted literal text for MessageFormat output.
C API: Parse Error Information.
C++ API: PluralFormat object.
C++ API: PluralRules object.
A UParseError struct is used to returned detailed information about parsing errors.
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
int8_t UBool
The ICU boolean type.
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UPluralType
Type of plurals and PluralRules.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.