24 #if U_SHOW_CPLUSPLUS_API 31 #if !UCONFIG_NO_FORMATTING 48 class AppendableWrapper;
347 #ifndef U_HIDE_OBSOLETE_API 439 virtual void setLocale(
const Locale& theLocale);
501 return msgPattern.getApostropheMode();
530 virtual void adoptFormats(
Format** formatsToAdopt, int32_t count);
546 virtual void setFormats(
const Format** newFormats, int32_t cnt);
563 virtual void adoptFormat(int32_t formatNumber,
Format* formatToAdopt);
574 virtual void setFormat(int32_t formatNumber,
const Format& format);
644 virtual const Format** getFormats(int32_t& count)
const;
758 int32_t& count)
const;
825 UBool usesNamedArguments()
const;
828 #ifndef U_HIDE_INTERNAL_API 839 int32_t getArgTypeCount()
const;
866 static UClassID U_EXPORT2 getStaticClassID(
void);
868 #ifndef U_HIDE_INTERNAL_API 879 static UBool equalFormats(
const void* left,
const void* right);
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);
1032 FieldPosition* updateMetaData(AppendableWrapper& dest, int32_t prevLength,
1040 int32_t findOtherSubMessage(int32_t partIndex)
const;
1047 int32_t findFirstPluralNumberArg(int32_t msgStart,
const UnicodeString &argName)
const;
1049 Format* getCachedFormatter(int32_t argumentNumber)
const;
1051 UnicodeString getLiteralStringUntilNextArgument(int32_t from)
const;
1055 void formatComplexSubMessage(int32_t msgStart,
1056 const void *plNumber,
1060 AppendableWrapper& appendTo,
1076 listCount = argTypeCount;
1083 void resetPattern();
1092 virtual DummyFormat*
clone()
const;
1109 friend class MessageFormatAdapter;
struct UHashtable UHashtable
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
C++ API: PluralFormat object.
Base class for 'pure' C++ implementations of uenum api.
C++ API: PluralRules object.
Defines rules for mapping non-negative numeric values onto a small set of keywords.
Parses and represents ICU MessageFormat patterns.
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
C API: Parse Error Information.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
UPluralType
Type of plurals and PluralRules.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
C++ API: Locale ID object.
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns.
UMessagePatternApostropheMode
Mode for when an apostrophe starts quoted literal text for MessageFormat output.
int8_t UBool
The ICU boolean type.
A Locale object represents a specific geographical, political, or cultural region.