CharString* actualLocale =
nullptr;
302CharString* validLocale =
nullptr;
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Base class for all formats.
Format()
Default constructor for subclass use only.
virtual void parseObject(const UnicodeString &source, Formattable &result, ParsePosition &parse_pos) const =0
Parse a string to produce an object.
static void syntaxError(const UnicodeString &pattern, int32_t pos, UParseError &parseError)
Simple function for initializing a UParseError from a UnicodeString.
virtual UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const =0
Format an object to produce a string.
virtual UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const
Format an object to produce a string.
Format & operator=(const Format &)
const char * getLocaleID(ULocDataLocaleType type, UErrorCode &status) const
Get the locale for this format object.
void setLocaleIDs(const char *valid, const char *actual)
virtual ~Format()
Destructor.
void parseObject(const UnicodeString &source, Formattable &result, UErrorCode &status) const
Parses a string to produce an object.
virtual Format * clone() const =0
Clone this object polymorphically.
virtual bool operator==(const Format &other) const =0
Return true if the given Format objects are semantically equal.
bool operator!=(const Format &other) const
Return true if the given Format objects are not semantically equal.
Locale getLocale(ULocDataLocaleType type, UErrorCode &status) const
Get the locale for this format object.
UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const
Formats an object to produce a string.
Formattable objects can be passed to the Format class or its subclasses for formatting.
A Locale object represents a specific geographical, political, or cultural region.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: FieldPosition identifies the fields in a formatted output.
C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing.
C++ API: FieldPosition Iterator.
C++ API: Locale ID object.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
C API: Parse Error Information.
C++ API: Canonical Iterator.
A UParseError struct is used to returned detailed information about parsing errors.
ULocDataLocaleType
Constants for *_getLocale() Allow user to select whether she wants information on requested,...
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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4