Go to the documentation of this file.
23 #if U_SHOW_CPLUSPLUS_API
33 #if !UCONFIG_NO_FORMATTING
188 class U_I18N_API SelectFormat :
public Format {
199 SelectFormat(
const UnicodeString& pattern,
UErrorCode& status);
205 SelectFormat(
const SelectFormat& other);
211 virtual ~SelectFormat();
224 void applyPattern(
const UnicodeString& pattern,
UErrorCode& status);
227 using Format::format;
242 UnicodeString& format(
const UnicodeString& keyword,
243 UnicodeString& appendTo,
253 SelectFormat& operator=(
const SelectFormat& other);
278 virtual SelectFormat* clone()
const;
295 UnicodeString& format(
const Formattable& obj,
296 UnicodeString& appendTo,
308 UnicodeString& toPattern(UnicodeString& appendTo);
332 virtual void parseObject(
const UnicodeString& source,
334 ParsePosition& parse_pos)
const;
340 static UClassID U_EXPORT2 getStaticClassID(
void);
346 virtual UClassID getDynamicClassID()
const;
349 friend class MessageFormat;
361 static int32_t findSubMessage(
const MessagePattern& pattern, int32_t partIndex,
362 const UnicodeString& keyword,
UErrorCode& ec);
364 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
Standard ICU4C error code type, a substitute for exceptions.
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.