11 #ifndef __SIMPLEFORMATTER_H__ 12 #define __SIMPLEFORMATTER_H__ 21 #if U_SHOW_CPLUSPLUS_API 80 applyPattern(pattern, errorCode);
99 applyPatternMinMaxArguments(pattern, min, max, errorCode);
107 : compiledPattern(other.compiledPattern) {}
132 return applyPatternMinMaxArguments(pattern, 0,
INT32_MAX, errorCode);
151 int32_t min, int32_t max,
UErrorCode &errorCode);
158 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
237 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
263 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
271 return getTextWithNoArguments(
272 compiledPattern.getBuffer(),
273 compiledPattern.length(),
278 #ifndef U_HIDE_INTERNAL_API 295 return getTextWithNoArguments(
296 compiledPattern.getBuffer(),
297 compiledPattern.length(),
301 #endif // U_HIDE_INTERNAL_API 315 static inline int32_t getArgumentLimit(
const char16_t *compiledPattern,
316 int32_t compiledPatternLength) {
317 return compiledPatternLength == 0 ? 0 : compiledPattern[0];
321 const char16_t *compiledPattern,
322 int32_t compiledPatternLength,
324 int32_t offsetsLength);
327 const char16_t *compiledPattern, int32_t compiledPatternLength,
330 int32_t *offsets, int32_t offsetsLength,
334 friend class number::impl::SimpleModifier;
341 #endif // __SIMPLEFORMATTER_H__
#define INT32_MAX
The largest value a 32 bit signed integer can hold.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#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.