11#ifndef __SIMPLEFORMATTER_H__
12#define __SIMPLEFORMATTER_H__
77 applyPattern(pattern, errorCode);
96 applyPatternMinMaxArguments(pattern,
min,
max, errorCode);
104 : compiledPattern(
other.compiledPattern) {}
129 return applyPatternMinMaxArguments(pattern, 0,
INT32_MAX, errorCode);
155 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
268 return getTextWithNoArguments(compiledPattern.getBuffer(), compiledPattern.length());
283 static inline int32_t getArgumentLimit(
const char16_t *compiledPattern,
288 static UnicodeString getTextWithNoArguments(
const char16_t *compiledPattern, int32_t compiledPatternLength);
290 static UnicodeString &format(
291 const char16_t *compiledPattern, int32_t compiledPatternLength,
292 const UnicodeString *
const *values,
293 UnicodeString &result,
const UnicodeString *resultCopy,
UBool forbidResultAsValue,
294 int32_t *offsets, int32_t offsetsLength,
298 friend class number::impl::SimpleModifier;
"Smart pointer" base class; do not use directly: use LocalPointer etc.
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.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.