11 #ifndef __SIMPLEFORMATTER_H__ 12 #define __SIMPLEFORMATTER_H__ 22 #ifndef U_HIDE_DRAFT_API 72 applyPattern(pattern, errorCode);
91 applyPatternMinMaxArguments(pattern, min, max, errorCode);
99 : compiledPattern(other.compiledPattern) {}
124 return applyPatternMinMaxArguments(pattern, 0,
INT32_MAX, errorCode);
143 int32_t min, int32_t max,
UErrorCode &errorCode);
150 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
229 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
255 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
263 return getTextWithNoArguments(compiledPattern.getBuffer(), compiledPattern.length());
278 static inline int32_t getArgumentLimit(
const UChar *compiledPattern,
279 int32_t compiledPatternLength) {
280 return compiledPatternLength == 0 ? 0 : compiledPattern[0];
283 static UnicodeString getTextWithNoArguments(
const UChar *compiledPattern, int32_t compiledPatternLength);
286 const UChar *compiledPattern, int32_t compiledPatternLength,
289 int32_t *offsets, int32_t offsetsLength,
297 #endif // __SIMPLEFORMATTER_H__
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define INT32_MAX
The largest value a 32 bit signed integer can hold.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UMemory is the common ICU base class.
int8_t UBool
The ICU boolean type.