27 #if !UCONFIG_NO_FORMATTING
39 typedef struct UHashtable UHashtable;
44 class AppendableWrapper;
325 #ifndef U_HIDE_OBSOLETE_API
479 return msgPattern.getApostropheMode();
736 int32_t& count)
const;
806 #ifndef U_HIDE_INTERNAL_API
846 #ifndef U_HIDE_INTERNAL_API
865 int32_t formatAliasesCapacity;
878 virtual ~PluralSelectorProvider();
897 int32_t argTypeCount;
898 int32_t argTypeCapacity;
905 UBool hasArgTypeConflicts;
920 UHashtable* cachedFormatters;
921 UHashtable* customFormatArgStarts;
923 PluralSelectorProvider pluralProvider;
924 PluralSelectorProvider ordinalProvider;
940 const UChar *
const *list);
971 void format(int32_t msgStart,
972 const void *plNumber,
976 AppendableWrapper& appendTo,
982 void setArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
984 void setCustomArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
986 int32_t nextTopLevelArgStart(int32_t partIndex)
const;
988 UBool argNameMatches(int32_t partIndex,
const UnicodeString& argName, int32_t argNumber);
990 void cacheExplicitFormats(
UErrorCode& status);
1008 FieldPosition* updateMetaData(AppendableWrapper& dest, int32_t prevLength,
1016 int32_t findOtherSubMessage(int32_t partIndex)
const;
1023 int32_t findFirstPluralNumberArg(int32_t msgStart,
const UnicodeString &argName)
const;
1025 Format* getCachedFormatter(int32_t argumentNumber)
const;
1027 UnicodeString getLiteralStringUntilNextArgument(int32_t from)
const;
1031 void formatComplexSubMessage(int32_t msgStart,
1032 const void *plNumber,
1036 AppendableWrapper& appendTo,
1052 listCount = argTypeCount;
1059 void resetPattern();
1085 friend class MessageFormatAdapter;
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
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.
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.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
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.