11#ifndef __SIMPLEFORMATTER_H__
12#define __SIMPLEFORMATTER_H__
21#if U_SHOW_CPLUSPLUS_API
28namespace number::impl {
105 : compiledPattern(other.compiledPattern) {}
149 int32_t min, int32_t max,
UErrorCode &errorCode);
156 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
237 int32_t valuesLength,
240 int32_t offsetsLength,
266 int32_t valuesLength,
269 int32_t offsetsLength,
279 compiledPattern.getBuffer(),
280 compiledPattern.length(),
285#ifndef U_HIDE_INTERNAL_API
303 compiledPattern.getBuffer(),
304 compiledPattern.length(),
322 static inline int32_t getArgumentLimit(
const char16_t *compiledPattern,
323 int32_t compiledPatternLength) {
324 return compiledPatternLength == 0 ? 0 : compiledPattern[0];
327 static UnicodeString getTextWithNoArguments(
328 const char16_t *compiledPattern,
329 int32_t compiledPatternLength,
331 int32_t offsetsLength);
333 static UnicodeString& format(
334 const char16_t* compiledPattern,
335 int32_t compiledPatternLength,
336 const UnicodeString*
const* values,
337 UnicodeString& result U_LIFETIME_BOUND,
338 const UnicodeString* resultCopy,
339 UBool forbidResultAsValue,
341 int32_t offsetsLength,
345 friend class number::impl::SimpleModifier;
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.