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);
148 int32_t min, int32_t max,
UErrorCode &errorCode);
155 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
234 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
260 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
268 return getTextWithNoArguments(
269 compiledPattern.getBuffer(),
270 compiledPattern.length(),
275 #ifndef U_HIDE_INTERNAL_API 292 return getTextWithNoArguments(
293 compiledPattern.getBuffer(),
294 compiledPattern.length(),
298 #endif // U_HIDE_INTERNAL_API 312 static inline int32_t getArgumentLimit(
const char16_t *compiledPattern,
313 int32_t compiledPatternLength) {
314 return compiledPatternLength == 0 ? 0 : compiledPattern[0];
318 const char16_t *compiledPattern,
319 int32_t compiledPatternLength,
321 int32_t offsetsLength);
324 const char16_t *compiledPattern, int32_t compiledPatternLength,
327 int32_t *offsets, int32_t offsetsLength,
331 friend class number::impl::SimpleModifier;
336 #endif // __SIMPLEFORMATTER_H__
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
#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...
#define U_FINAL
Defined to the C++11 "final" keyword if available.
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.