/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | SimplePatternFormatterTest.java | 10 import com.ibm.icu.impl.SimplePatternFormatter; 34 … SimplePatternFormatter fmt = SimplePatternFormatter.compile("This doesn''t have templates '{0}"); in TestWithNoPlaceholders() 56 fmt = SimplePatternFormatter.compile("Some {} messed {12d up stuff."); in TestWithNoPlaceholders() 70 SimplePatternFormatter.compile("{0} meter").format("1")); in TestOnePlaceholder() 77 SimplePatternFormatter.compile( in TestGetPatternWithNoPlaceholders() 82 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestTooFewPlaceholderValues() 107 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestWithPlaceholders() 131 SimplePatternFormatter fmt = SimplePatternFormatter.compile( in TestFormatUseAppendToAsPlaceholder() 143 SimplePatternFormatter fmt = SimplePatternFormatter.compile("{2}, {0}, {1} and {3}"); in TestFormatReplaceNoOptimization() 160 SimplePatternFormatter fmt = SimplePatternFormatter.compile("boo {2}, {0}, {1} and {3}"); in TestFormatReplaceNoOptimizationLeadingText() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | ListFormatter.java | 20 import com.ibm.icu.impl.SimplePatternFormatter; 32 private final SimplePatternFormatter two; 33 private final SimplePatternFormatter start; 34 private final SimplePatternFormatter middle; 35 private final SimplePatternFormatter end; 112 SimplePatternFormatter.compile(two), in ListFormatter() 113 SimplePatternFormatter.compile(start), in ListFormatter() 114 SimplePatternFormatter.compile(middle), in ListFormatter() 115 SimplePatternFormatter.compile(end), in ListFormatter() 120 …rivate ListFormatter(SimplePatternFormatter two, SimplePatternFormatter start, SimplePatternFormat… in ListFormatter() [all …]
|
D | QuantityFormatter.java | 12 import com.ibm.icu.impl.SimplePatternFormatter; 47 private SimplePatternFormatter[] templates; 65 SimplePatternFormatter newT = SimplePatternFormatter.compile(template); in add() 99 templates = new SimplePatternFormatter[MAX_INDEX]; in ensureCapacity() 105 private final SimplePatternFormatter[] templates; 107 private QuantityFormatter(SimplePatternFormatter[] templates) { in QuantityFormatter() 130 public SimplePatternFormatter getByVariant(String variant) { in getByVariant() 132 SimplePatternFormatter template = templates[idxObj == null ? 0 : idxObj.intValue()]; in getByVariant()
|
D | MeasureFormat.java | 35 import com.ibm.icu.impl.SimplePatternFormatter; 132 …private final transient Map<MeasureUnit, EnumMap<FormatWidth, SimplePatternFormatter>> unitToStyle… 134 private final transient EnumMap<FormatWidth, SimplePatternFormatter> styleToPerPattern; 436 SimplePatternFormatter rangeFormatter = getRangeFormat(getLocale(), formatWidth); in formatMeasureRange() 461 … SimplePatternFormatter formatter = countToFormat.getByVariant(resolvedCategory.toString()); in formatMeasureRange() 694 … Map<MeasureUnit, EnumMap<FormatWidth, SimplePatternFormatter>> unitToStyleToPerUnitPattern, in MeasureFormat() 695 EnumMap<FormatWidth, SimplePatternFormatter> styleToPerPattern) { in MeasureFormat() 758 Map<MeasureUnit, EnumMap<FormatWidth, SimplePatternFormatter>> unitToStyleToPerUnitPattern in loadLocaleData() 759 = new HashMap<MeasureUnit, EnumMap<FormatWidth, SimplePatternFormatter>>(); in loadLocaleData() 761 …EnumMap<FormatWidth, SimplePatternFormatter> styleToPerPattern = new EnumMap<FormatWidth, SimplePa… in loadLocaleData() [all …]
|
/external/icu/icu4c/source/common/ |
D | simplepatternformatter.cpp | 134 SimplePatternFormatter::SimplePatternFormatter() : in SimplePatternFormatter() function in SimplePatternFormatter 142 SimplePatternFormatter::SimplePatternFormatter(const UnicodeString &pattern) : in SimplePatternFormatter() function in SimplePatternFormatter 152 SimplePatternFormatter::SimplePatternFormatter( in SimplePatternFormatter() function in SimplePatternFormatter 153 const SimplePatternFormatter &other) : in SimplePatternFormatter() 166 SimplePatternFormatter &SimplePatternFormatter::operator=( in operator =() 167 const SimplePatternFormatter& other) { in operator =() 182 SimplePatternFormatter::~SimplePatternFormatter() { in ~SimplePatternFormatter() 185 UBool SimplePatternFormatter::compile( in compile() 261 UnicodeString& SimplePatternFormatter::format( in format() 275 UnicodeString& SimplePatternFormatter::format( in format() [all …]
|
D | simplepatternformatter.h | 47 class U_COMMON_API SimplePatternFormatter : public UMemory { 52 SimplePatternFormatter(); 58 explicit SimplePatternFormatter(const UnicodeString& pattern); 63 SimplePatternFormatter(const SimplePatternFormatter& other); 68 SimplePatternFormatter &operator=(const SimplePatternFormatter& other); 73 ~SimplePatternFormatter();
|
D | listformatter.cpp | 30 SimplePatternFormatter twoPattern; 31 SimplePatternFormatter startPattern; 32 SimplePatternFormatter middlePattern; 33 SimplePatternFormatter endPattern; 255 const SimplePatternFormatter& pat, in joinStringsAndReplace()
|
/external/icu/icu4c/source/test/intltest/ |
D | simplepatternformattertest.cpp | 58 SimplePatternFormatter fmt("This doesn''t have templates '{0}"); in TestNoPlaceholders() 77 SimplePatternFormatter fmt; in TestOnePlaceholder() 90 SimplePatternFormatter s; in TestOnePlaceholder() 99 SimplePatternFormatter r(fmt); in TestOnePlaceholder() 110 SimplePatternFormatter fmt; in TestManyPlaceholders() 154 SimplePatternFormatter s; in TestManyPlaceholders() 169 SimplePatternFormatter r(fmt); in TestManyPlaceholders() 206 SimplePatternFormatter fmt("{0} and {1}"); in TestTooFewPlaceholderValues() 234 SimplePatternFormatter fmt("pickle"); in TestBadArguments() 289 SimplePatternFormatter fmt("{0} has no {1} placeholders."); in TestGetPatternWithNoPlaceholders() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | quantityformatter.cpp | 49 formatters[i] = new SimplePatternFormatter(*other.formatters[i]); in QuantityFormatter() 64 formatters[i] = new SimplePatternFormatter(*other.formatters[i]); in operator =() 95 SimplePatternFormatter *newFmt = in add() 96 new SimplePatternFormatter(rawPattern); in add() 115 const SimplePatternFormatter *QuantityFormatter::getByVariant( in getByVariant() 121 const SimplePatternFormatter *pattern = formatters[pluralIndex]; in getByVariant() 163 const SimplePatternFormatter *pattern = getByVariant(buffer.data()); in format()
|
D | quantityformatter.h | 19 class SimplePatternFormatter; variable 89 const SimplePatternFormatter *getByVariant(const char *variant) const; 112 SimplePatternFormatter *formatters[6];
|
D | measfmt.cpp | 84 SimplePatternFormatter perFormatters[WIDTH_INDEX_COUNT]; 111 SimplePatternFormatter *formatterToAdopt) { in adoptPerUnitFormatter() 115 const SimplePatternFormatter * const * getPerUnitFormattersByIndex( in getPerUnitFormattersByIndex() 124 SimplePatternFormatter *perUnitFormatters[MEAS_UNIT_COUNT][WIDTH_INDEX_COUNT]; 278 new SimplePatternFormatter(perPattern)); in loadMeasureUnitData() 945 const SimplePatternFormatter *MeasureFormat::getPerUnitFormatter( in getPerUnitFormatter() 948 const SimplePatternFormatter * const * perUnitFormatters = in getPerUnitFormatter() 962 const SimplePatternFormatter *MeasureFormat::getPerFormatter( in getPerFormatter() 968 const SimplePatternFormatter * perFormatters = cache->perFormatters; in getPerFormatter() 999 const SimplePatternFormatter *perUnitFormatter = getPerUnitFormatter( in withPerUnitAndAppend() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | measfmt.h | 81 class SimplePatternFormatter; variable 335 const SimplePatternFormatter *getPerUnitFormatter( 339 const SimplePatternFormatter *getPerFormatter(
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SimplePatternFormatter.java | 34 public class SimplePatternFormatter { class 44 private SimplePatternFormatter(String pattern, PlaceholdersBuilder builder) { in SimplePatternFormatter() method in SimplePatternFormatter 57 public static SimplePatternFormatter compile(String pattern) { in compile() 116 return new SimplePatternFormatter(newPattern.toString(), placeholdersBuilder); in compile()
|