Home
last modified time | relevance | path

Searched refs:SimplePatternFormatter (Results 1 – 25 of 25) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DSimplePatternFormatterTest.java11 import android.icu.impl.SimplePatternFormatter;
40SimplePatternFormatter fmt = SimplePatternFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoPlaceholders()
78 SimplePatternFormatter.compile("{}"); in TestSyntaxErrors()
83 SimplePatternFormatter.compile("{12d"); in TestSyntaxErrors()
92 SimplePatternFormatter.compile("{0} meter").format("1")); in TestOnePlaceholder()
96 SimplePatternFormatter fmt = SimplePatternFormatter.compile("a{20}c"); in TestBigPlaceholder()
107 SimplePatternFormatter.compile( in TestGetTextWithNoPlaceholders()
112 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestTooFewPlaceholderValues()
137 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestWithPlaceholders()
161 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestFormatUseAppendToAsPlaceholder()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DSimplePatternFormatterTest.java10 import com.ibm.icu.impl.SimplePatternFormatter;
36SimplePatternFormatter fmt = SimplePatternFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoPlaceholders()
74 SimplePatternFormatter.compile("{}"); in TestSyntaxErrors()
79 SimplePatternFormatter.compile("{12d"); in TestSyntaxErrors()
88 SimplePatternFormatter.compile("{0} meter").format("1")); in TestOnePlaceholder()
92 SimplePatternFormatter fmt = SimplePatternFormatter.compile("a{20}c"); in TestBigPlaceholder()
103 SimplePatternFormatter.compile( in TestGetTextWithNoPlaceholders()
108 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestTooFewPlaceholderValues()
133 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestWithPlaceholders()
157 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestFormatUseAppendToAsPlaceholder()
[all …]
/external/icu/icu4c/source/common/
Dsimplepatternformatter.h42 class U_COMMON_API SimplePatternFormatter : public UMemory {
47 SimplePatternFormatter() : compiledPattern((UChar)0) {} in SimplePatternFormatter() function
54 explicit SimplePatternFormatter(const UnicodeString& pattern, UErrorCode &errorCode) { in SimplePatternFormatter() function
65 SimplePatternFormatter(const UnicodeString& pattern, int32_t min, int32_t max, in SimplePatternFormatter() function
73 SimplePatternFormatter(const SimplePatternFormatter& other) in SimplePatternFormatter() function
79 SimplePatternFormatter &operator=(const SimplePatternFormatter& other);
84 ~SimplePatternFormatter();
Dsimplepatternformatter.cpp51 SimplePatternFormatter &SimplePatternFormatter::operator=( in operator =()
52 const SimplePatternFormatter& other) { in operator =()
60 SimplePatternFormatter::~SimplePatternFormatter() {} in ~SimplePatternFormatter()
62 UBool SimplePatternFormatter::compileMinMaxPlaceholders( in compileMinMaxPlaceholders()
157 UnicodeString& SimplePatternFormatter::format( in format()
164 UnicodeString& SimplePatternFormatter::format( in format()
172 UnicodeString& SimplePatternFormatter::format( in format()
181 UnicodeString& SimplePatternFormatter::formatAndAppend( in formatAndAppend()
198 UnicodeString &SimplePatternFormatter::formatAndReplace( in formatAndReplace()
247 UnicodeString SimplePatternFormatter::getTextWithNoPlaceholders( in getTextWithNoPlaceholders()
[all …]
Dlistformatter.cpp30 SimplePatternFormatter twoPattern;
31 SimplePatternFormatter startPattern;
32 SimplePatternFormatter middlePattern;
33 SimplePatternFormatter endPattern;
260 const SimplePatternFormatter& pat, in joinStringsAndReplace()
/external/icu/icu4c/source/test/intltest/
Dsimplepatternformattertest.cpp67 SimplePatternFormatter fmt("This doesn''t have templates '{0}", status); in TestNoPlaceholders()
90 SimplePatternFormatter fmt("{}", status); in TestSyntaxErrors()
99 SimplePatternFormatter fmt; in TestOnePlaceholder()
112 SimplePatternFormatter s; in TestOnePlaceholder()
121 SimplePatternFormatter r(fmt); in TestOnePlaceholder()
132 SimplePatternFormatter fmt("a{20}c", status); in TestBigPlaceholder()
150 SimplePatternFormatter fmt; in TestManyPlaceholders()
194 SimplePatternFormatter s; in TestManyPlaceholders()
209 SimplePatternFormatter r(fmt); in TestManyPlaceholders()
247 SimplePatternFormatter fmt("{0} and {1}", status); in TestTooFewPlaceholderValues()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DQuantityFormatter.java12 import android.icu.impl.SimplePatternFormatter;
25 private final SimplePatternFormatter[] templates =
26 new SimplePatternFormatter[StandardPlural.COUNT];
45 templates[idx] = SimplePatternFormatter.compileMinMaxPlaceholders(template, 0, 1); in addIfAbsent()
66 SimplePatternFormatter formatter = templates[p.ordinal()]; in format()
79 public SimplePatternFormatter getByVariant(CharSequence variant) { in getByVariant()
82 SimplePatternFormatter template = templates[idx]; in getByVariant()
127 SimplePatternFormatter.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
DListFormatter.java19 import android.icu.impl.SimplePatternFormatter;
128 return SimplePatternFormatter.compileToStringMinMaxPlaceholders(pattern, sb, 2, 2); in compilePattern()
267 SimplePatternFormatter.formatAndReplace( in append()
DMeasureFormat.java36 import android.icu.impl.SimplePatternFormatter;
413 …String formattedNumber = SimplePatternFormatter.formatCompiledPattern(rangeFormatter, lowFormatted… in formatMeasureRange()
437 return SimplePatternFormatter.formatCompiledPattern(formatter, formattedNumber); in formatMeasureRange()
742 patterns[index] = SimplePatternFormatter.compileToStringMinMaxPlaceholders( in setFormatterIfAbsent()
791 SimplePatternFormatter.compileToStringMinMaxPlaceholders( in put()
974 SimplePatternFormatter.formatAndAppend(perUnitPattern, appendTo, offsets, formatted); in withPerUnitAndAppend()
979 String perUnitString = SimplePatternFormatter.getTextWithNoPlaceholders(pattern).trim(); in withPerUnitAndAppend()
980 SimplePatternFormatter.formatAndAppend( in withPerUnitAndAppend()
1428 …result = SimplePatternFormatter.compileToStringMinMaxPlaceholders(resultString, new StringBuilder(… in getRangeFormat()
DRelativeDateTimeFormatter.java18 import android.icu.impl.SimplePatternFormatter;
372 result = SimplePatternFormatter.formatCompiledPattern(formatter, formatStr); in format()
826SimplePatternFormatter.compileToStringMinMaxPlaceholders(value.getString(), in put()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DQuantityFormatter.java11 import com.ibm.icu.impl.SimplePatternFormatter;
24 private final SimplePatternFormatter[] templates =
25 new SimplePatternFormatter[StandardPlural.COUNT];
44 templates[idx] = SimplePatternFormatter.compileMinMaxPlaceholders(template, 0, 1); in addIfAbsent()
65 SimplePatternFormatter formatter = templates[p.ordinal()]; in format()
78 public SimplePatternFormatter getByVariant(CharSequence variant) { in getByVariant()
81 SimplePatternFormatter template = templates[idx]; in getByVariant()
126 SimplePatternFormatter.formatAndAppend(compiledPattern, appendTo, offsets, value); in format()
DListFormatter.java18 import com.ibm.icu.impl.SimplePatternFormatter;
127 return SimplePatternFormatter.compileToStringMinMaxPlaceholders(pattern, sb, 2, 2); in compilePattern()
272 SimplePatternFormatter.formatAndReplace( in append()
DMeasureFormat.java35 import com.ibm.icu.impl.SimplePatternFormatter;
430 …String formattedNumber = SimplePatternFormatter.formatCompiledPattern(rangeFormatter, lowFormatted… in formatMeasureRange()
454 return SimplePatternFormatter.formatCompiledPattern(formatter, formattedNumber); in formatMeasureRange()
769 patterns[index] = SimplePatternFormatter.compileToStringMinMaxPlaceholders( in setFormatterIfAbsent()
818 SimplePatternFormatter.compileToStringMinMaxPlaceholders( in put()
1001 SimplePatternFormatter.formatAndAppend(perUnitPattern, appendTo, offsets, formatted); in withPerUnitAndAppend()
1006 String perUnitString = SimplePatternFormatter.getTextWithNoPlaceholders(pattern).trim(); in withPerUnitAndAppend()
1007 SimplePatternFormatter.formatAndAppend( in withPerUnitAndAppend()
1454 …result = SimplePatternFormatter.compileToStringMinMaxPlaceholders(resultString, new StringBuilder(… in getRangeFormat()
DRelativeDateTimeFormatter.java17 import com.ibm.icu.impl.SimplePatternFormatter;
412 result = SimplePatternFormatter.formatCompiledPattern(formatter, formatStr); in format()
873SimplePatternFormatter.compileToStringMinMaxPlaceholders(value.getString(), in put()
/external/icu/icu4c/source/i18n/
Dquantityformatter.cpp40 formatters[i] = new SimplePatternFormatter(*other.formatters[i]); in QuantityFormatter()
55 formatters[i] = new SimplePatternFormatter(*other.formatters[i]); in operator =()
85 SimplePatternFormatter *newFmt = new SimplePatternFormatter(rawPattern, 0, 1, status); in addIfAbsent()
102 const SimplePatternFormatter *QuantityFormatter::getByVariant( in getByVariant()
106 const SimplePatternFormatter *pattern = formatters[pluralIndex]; in getByVariant()
125 const SimplePatternFormatter *pattern = formatters[p]; in format()
176 const SimplePatternFormatter &pattern, in format()
Dquantityformatter.h21 class SimplePatternFormatter; variable
88 const SimplePatternFormatter *getByVariant(const char *variant) const;
125 const SimplePatternFormatter &pattern,
132 SimplePatternFormatter *formatters[StandardPlural::COUNT];
Dmeasfmt.cpp110 SimplePatternFormatter *patterns[MEAS_UNIT_COUNT][WIDTH_INDEX_COUNT][PATTERN_COUNT];
111 SimplePatternFormatter perFormatters[WIDTH_INDEX_COUNT];
227 SimplePatternFormatter **patterns = in setFormatterIfAbsent()
230 patterns[index] = new SimplePatternFormatter( in setFormatterIfAbsent()
903 … const SimplePatternFormatter *formatter = getPluralFormatter(amtUnit, width, pluralForm, status); in formatMeasure()
1036 const SimplePatternFormatter *MeasureFormat::getFormatterOrNull( in getFormatterOrNull()
1039 SimplePatternFormatter *const (*unitPatterns)[MeasureFormatCacheData::PATTERN_COUNT] = in getFormatterOrNull()
1051 const SimplePatternFormatter *MeasureFormat::getFormatter( in getFormatter()
1057 const SimplePatternFormatter *pattern = getFormatterOrNull(unit, width, index); in getFormatter()
1064 const SimplePatternFormatter *MeasureFormat::getPluralFormatter( in getPluralFormatter()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dmeasfmt.h81 class SimplePatternFormatter; variable
330 const SimplePatternFormatter *getFormatterOrNull(
333 const SimplePatternFormatter *getFormatter(
337 const SimplePatternFormatter *getPluralFormatter(
341 const SimplePatternFormatter *getPerFormatter(
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DSimplePatternFormatter.java34 public final class SimplePatternFormatter { class
75 private SimplePatternFormatter(String compiledPattern) { in SimplePatternFormatter() method in SimplePatternFormatter
85 public static SimplePatternFormatter compile(CharSequence pattern) { in compile()
97 …public static SimplePatternFormatter compileMinMaxPlaceholders(CharSequence pattern, int min, int … in compileMinMaxPlaceholders()
100 return new SimplePatternFormatter(compiledPattern); in compileMinMaxPlaceholders()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimplePatternFormatter.java32 public final class SimplePatternFormatter { class
73 private SimplePatternFormatter(String compiledPattern) { in SimplePatternFormatter() method in SimplePatternFormatter
83 public static SimplePatternFormatter compile(CharSequence pattern) { in compile()
95 …public static SimplePatternFormatter compileMinMaxPlaceholders(CharSequence pattern, int min, int … in compileMinMaxPlaceholders()
98 return new SimplePatternFormatter(compiledPattern); in compileMinMaxPlaceholders()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRangesTest.java12 import com.ibm.icu.impl.SimplePatternFormatter;
65 String actual = SimplePatternFormatter.formatCompiledPattern(formatter, "{0}", "{1}"); in TestRangePattern()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRangesTest.java13 import android.icu.impl.SimplePatternFormatter;
69 String actual = SimplePatternFormatter.formatCompiledPattern(formatter, "{0}", "{1}"); in TestRangePattern()
/external/icu/icu4j/tools/build/
Dicu4j56.api3.gz
Dicu4j55.api3.gz
Dicu4j54.api3.gz12;ICU4J 54.1.0;; 2ST@3.6;PB;NS;NF; ...