number::impl {
78applyPattern(pattern, errorCode);
97applyPatternMinMaxArguments(pattern, min, max, errorCode);
105: compiledPattern(other.compiledPattern) {}
130 returnapplyPatternMinMaxArguments(pattern, 0,
INT32_MAX, errorCode);
149int32_t min, int32_t max,
UErrorCode&errorCode);
156 returngetArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
235int32_t *offsets, int32_t offsetsLength,
UErrorCode&errorCode)
const;
261int32_t *offsets, int32_t offsetsLength,
UErrorCode&errorCode)
const;
269 returngetTextWithNoArguments(
270compiledPattern.getBuffer(),
271compiledPattern.length(),
276 #ifndef U_HIDE_INTERNAL_API 293 returngetTextWithNoArguments(
294compiledPattern.getBuffer(),
295compiledPattern.length(),
313 static inlineint32_t getArgumentLimit(
constchar16_t *compiledPattern,
314int32_t compiledPatternLength) {
315 returncompiledPatternLength == 0 ? 0 : compiledPattern[0];
318 staticUnicodeString getTextWithNoArguments(
319 constchar16_t *compiledPattern,
320int32_t compiledPatternLength,
322int32_t offsetsLength);
324 staticUnicodeString &format(
325 constchar16_t *compiledPattern, int32_t compiledPatternLength,
326 constUnicodeString *
const*values,
327UnicodeString &result,
constUnicodeString *resultCopy,
UBoolforbidResultAsValue,
328int32_t *offsets, int32_t offsetsLength,
332 friend classnumber::impl::SimpleModifier;
Formats simple patterns like "{1} was born in {0}".
UnicodeString getTextWithNoArguments() const
Returns the pattern text with none of the arguments.
UnicodeString & formatAndAppend(const UnicodeString *const *values, int32_t valuesLength, UnicodeString &appendTo, int32_t *offsets, int32_t offsetsLength, UErrorCode &errorCode) const
Formats the given values, appending to the appendTo string.
UBool applyPatternMinMaxArguments(const UnicodeString &pattern, int32_t min, int32_t max, UErrorCode &errorCode)
Changes this object according to the new pattern.
SimpleFormatter(const UnicodeString &pattern, int32_t min, int32_t max, UErrorCode &errorCode)
Constructs a formatter from the pattern string.
int32_t getArgumentLimit() const
UnicodeString & format(const UnicodeString &value0, const UnicodeString &value1, UnicodeString &appendTo, UErrorCode &errorCode) const
Formats the given values, appending to the appendTo builder.
~SimpleFormatter()
Destructor.
UnicodeString & format(const UnicodeString &value0, UnicodeString &appendTo, UErrorCode &errorCode) const
Formats the given value, appending to the appendTo builder.
SimpleFormatter()
Default constructor.
SimpleFormatter & operator=(const SimpleFormatter &other)
Assignment operator.
UnicodeString & formatAndReplace(const UnicodeString *const *values, int32_t valuesLength, UnicodeString &result, int32_t *offsets, int32_t offsetsLength, UErrorCode &errorCode) const
Formats the given values, replacing the contents of the result string.
UBool applyPattern(const UnicodeString &pattern, UErrorCode &errorCode)
Changes this object according to the new pattern.
UnicodeString & format(const UnicodeString &value0, const UnicodeString &value1, const UnicodeString &value2, UnicodeString &appendTo, UErrorCode &errorCode) const
Formats the given values, appending to the appendTo builder.
SimpleFormatter(const SimpleFormatter &other)
Copy constructor.
SimpleFormatter(const UnicodeString &pattern, UErrorCode &errorCode)
Constructs a formatter from the pattern string.
UnicodeString getTextWithNoArguments(int32_t *offsets, int32_t offsetsLength) const
Returns the pattern text with none of the arguments.
UMemory is the common ICU base class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
#define INT32_MAX
The largest value a 32 bit signed integer can hold.
int8_t UBool
The ICU boolean type, a signed-byte integer.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_COMMON_API
Set to export library symbols from inside the common 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