24#if U_SHOW_CPLUSPLUS_API
31#if !UCONFIG_NO_FORMATTING
48class AppendableWrapper;
347#ifndef U_HIDE_OBSOLETE_API
501 return msgPattern.getApostropheMode();
647 using Format::format;
758 int32_t& count)
const;
828#ifndef U_HIDE_INTERNAL_API
868#ifndef U_HIDE_INTERNAL_API
887 int32_t formatAliasesCapacity;
897 class U_I18N_API PluralSelectorProvider :
public PluralFormat::PluralSelector {
900 virtual ~PluralSelectorProvider();
919 int32_t argTypeCount;
920 int32_t argTypeCapacity;
927 UBool hasArgTypeConflicts;
945 PluralSelectorProvider pluralProvider;
946 PluralSelectorProvider ordinalProvider;
962 const char16_t *
const *list);
993 void format(int32_t msgStart,
994 const void *plNumber,
998 AppendableWrapper& appendTo,
1004 void setArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
1006 void setCustomArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
1008 int32_t nextTopLevelArgStart(int32_t partIndex)
const;
1010 UBool argNameMatches(int32_t partIndex,
const UnicodeString& argName, int32_t argNumber);
1012 void cacheExplicitFormats(
UErrorCode& status);
1030 FieldPosition* updateMetaData(AppendableWrapper& dest, int32_t prevLength,
1038 int32_t findOtherSubMessage(int32_t partIndex)
const;
1045 int32_t findFirstPluralNumberArg(int32_t msgStart,
const UnicodeString &argName)
const;
1047 Format* getCachedFormatter(int32_t argumentNumber)
const;
1049 UnicodeString getLiteralStringUntilNextArgument(int32_t from)
const;
1053 void formatComplexSubMessage(int32_t msgStart,
1054 const void *plNumber,
1058 AppendableWrapper& appendTo,
1074 listCount = argTypeCount;
1081 void resetPattern();
1087 class U_I18N_API DummyFormat :
public Format {
1089 virtual bool operator==(
const Format&)
const override;
1090 virtual DummyFormat*
clone()
const override;
1091 virtual UnicodeString&
format(
const Formattable& obj,
1092 UnicodeString& appendTo,
1094 virtual UnicodeString&
format(
const Formattable&,
1095 UnicodeString& appendTo,
1098 virtual UnicodeString&
format(
const Formattable& obj,
1099 UnicodeString& appendTo,
1100 FieldPositionIterator* posIter,
1104 ParsePosition&)
const override;
1107 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.
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.
struct UHashtable UHashtable
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, a signed-byte integer.
#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
Standard ICU4C error code type, a substitute for exceptions.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.