9 #ifndef __SIMPLEFORMATTER_H__
10 #define __SIMPLEFORMATTER_H__
20 #ifndef U_HIDE_DRAFT_API
70 applyPattern(pattern, errorCode);
89 applyPatternMinMaxArguments(pattern, min, max, errorCode);
97 : compiledPattern(other.compiledPattern) {}
122 return applyPatternMinMaxArguments(pattern, 0,
INT32_MAX, errorCode);
141 int32_t min, int32_t max,
UErrorCode &errorCode);
148 return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
227 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
253 int32_t *offsets, int32_t offsetsLength,
UErrorCode &errorCode)
const;
261 return getTextWithNoArguments(compiledPattern.getBuffer(), compiledPattern.length());
276 static inline int32_t getArgumentLimit(
const UChar *compiledPattern,
277 int32_t compiledPatternLength) {
278 return compiledPatternLength == 0 ? 0 : compiledPattern[0];
281 static UnicodeString getTextWithNoArguments(
const UChar *compiledPattern, int32_t compiledPatternLength);
283 static UnicodeString &format(
284 const UChar *compiledPattern, int32_t compiledPatternLength,
285 const UnicodeString *
const *values,
286 UnicodeString &result,
const UnicodeString *resultCopy,
UBool forbidResultAsValue,
287 int32_t *offsets, int32_t offsetsLength,
295 #endif // __SIMPLEFORMATTER_H__