29 #if !UCONFIG_NO_FORMATTING 46 class AppendableWrapper;
330 #ifndef U_HIDE_OBSOLETE_API 422 virtual void setLocale(
const Locale& theLocale);
484 return msgPattern.getApostropheMode();
513 virtual void adoptFormats(
Format** formatsToAdopt, int32_t count);
529 virtual void setFormats(
const Format** newFormats, int32_t cnt);
546 virtual void adoptFormat(int32_t formatNumber,
Format* formatToAdopt);
557 virtual void setFormat(int32_t formatNumber,
const Format& format);
627 virtual const Format** getFormats(int32_t& count)
const;
741 int32_t& count)
const;
808 UBool usesNamedArguments()
const;
811 #ifndef U_HIDE_INTERNAL_API 822 int32_t getArgTypeCount()
const;
849 static UClassID U_EXPORT2 getStaticClassID(
void);
851 #ifndef U_HIDE_INTERNAL_API 862 static UBool equalFormats(
const void* left,
const void* right);
870 int32_t formatAliasesCapacity;
880 class U_I18N_API PluralSelectorProvider :
public PluralFormat::PluralSelector {
883 virtual ~PluralSelectorProvider();
902 int32_t argTypeCount;
903 int32_t argTypeCapacity;
910 UBool hasArgTypeConflicts;
928 PluralSelectorProvider pluralProvider;
929 PluralSelectorProvider ordinalProvider;
945 const char16_t *
const *list);
976 void format(int32_t msgStart,
977 const void *plNumber,
981 AppendableWrapper& appendTo,
987 void setArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
989 void setCustomArgStartFormat(int32_t argStart,
Format* formatter,
UErrorCode& status);
991 int32_t nextTopLevelArgStart(int32_t partIndex)
const;
993 UBool argNameMatches(int32_t partIndex,
const UnicodeString& argName, int32_t argNumber);
995 void cacheExplicitFormats(
UErrorCode& status);
1013 FieldPosition* updateMetaData(AppendableWrapper& dest, int32_t prevLength,
1021 int32_t findOtherSubMessage(int32_t partIndex)
const;
1028 int32_t findFirstPluralNumberArg(int32_t msgStart,
const UnicodeString &argName)
const;
1030 Format* getCachedFormatter(int32_t argumentNumber)
const;
1032 UnicodeString getLiteralStringUntilNextArgument(int32_t from)
const;
1036 void formatComplexSubMessage(int32_t msgStart,
1037 const void *plNumber,
1041 AppendableWrapper& appendTo,
1057 listCount = argTypeCount;
1064 void resetPattern();
1090 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...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
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.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
C API: Parse Error Information.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
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.