Go to the documentation of this file.
30 #if !UCONFIG_NO_FORMATTING
185 class U_I18N_API SelectFormat :
public Format {
196 SelectFormat(
const UnicodeString& pattern,
UErrorCode& status);
202 SelectFormat(
const SelectFormat& other);
208 virtual ~SelectFormat();
221 void applyPattern(
const UnicodeString& pattern,
UErrorCode& status);
224 using Format::format;
239 UnicodeString& format(
const UnicodeString& keyword,
240 UnicodeString& appendTo,
250 SelectFormat& operator=(
const SelectFormat& other);
275 virtual Format* clone(
void)
const;
292 UnicodeString& format(
const Formattable& obj,
293 UnicodeString& appendTo,
305 UnicodeString& toPattern(UnicodeString& appendTo);
329 virtual void parseObject(
const UnicodeString& source,
331 ParsePosition& parse_pos)
const;
337 static UClassID U_EXPORT2 getStaticClassID(
void);
343 virtual UClassID getDynamicClassID()
const;
346 friend class MessageFormat;
358 static int32_t findSubMessage(
const MessagePattern& pattern, int32_t partIndex,
359 const UnicodeString& keyword,
UErrorCode& ec);
361 MessagePattern msgPattern;
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns.
C++ API: Compatibility APIs for number formatting.
#define U_NAMESPACE_BEGIN