Home
last modified time | relevance | path

Searched refs:newPattern (Results 1 – 16 of 16) sorted by relevance

/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/datetimepatterngenerator/
DDateTimePatternGeneratorSample.java164 String newPattern = gen.replaceFieldTypes(pattern, "vvvv"); in replaceFieldTypesExample() local
166 format.applyPattern(newPattern); in replaceFieldTypesExample()
168 System.out.println(newPattern); in replaceFieldTypesExample()
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/datetimepatterngenerator/
DDateTimePatternGeneratorSample.java163 String newPattern = gen.replaceFieldTypes(pattern, "vvvv"); in replaceFieldTypesExample() local
165 format.applyPattern(newPattern); in replaceFieldTypesExample()
167 System.out.println(newPattern); in replaceFieldTypesExample()
/external/icu/icu4c/source/samples/dtptngsample/
Ddtptngsample.cpp143 UnicodeString newPattern = dtfg->replaceFieldTypes(pattern, "vvvv", status); in replaceFieldTypesExample() local
145 sdf->applyPattern(newPattern); in replaceFieldTypesExample()
149 u_fprintf(out, "%S\n", newPattern.getTerminatedBuffer()); in replaceFieldTypesExample()
/external/icu/icu4c/source/i18n/
Dchoicfmt.cpp77 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() argument
82 applyPattern(newPattern, status); in ChoiceFormat()
125 ChoiceFormat::ChoiceFormat(const UnicodeString& newPattern, in ChoiceFormat() argument
131 applyPattern(newPattern,parseError, status); in ChoiceFormat()
Dselfmt.cpp59 SelectFormat::applyPattern(const UnicodeString& newPattern, UErrorCode& status) { in applyPattern() argument
64 msgPattern.parseSelectStyle(newPattern, NULL, status); in applyPattern()
Dplurfmt.cpp196 PluralFormat::applyPattern(const UnicodeString& newPattern, UErrorCode& status) { in applyPattern() argument
197 msgPattern.parsePluralStyle(newPattern, NULL, status); in applyPattern()
Ddtptngen.cpp1519 UnicodeString newPattern; in adjustFieldTypes() local
1527 newPattern += quoteLiteral; in adjustFieldTypes()
1531 newPattern+=field; in adjustFieldTypes()
1536 newPattern+=field; in adjustFieldTypes()
1602 newPattern+=field; in adjustFieldTypes()
1605 return newPattern; in adjustFieldTypes()
Dmsgfmt.cpp473 MessageFormat::applyPattern(const UnicodeString& newPattern, in applyPattern() argument
477 applyPattern(newPattern,parseError,status); in applyPattern()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateTimeGeneratorTest.java175 String newPattern = gen.replaceFieldTypes(pattern, "vvvv"); in TestSimple() local
176 format.applyPattern(newPattern); in TestSimple()
661 …String newPattern = dtpgen.replaceFieldTypes(pattern, "VVVV"); // replaceZoneString(pattern, "VVVV… in TestReplacingZoneString() local
662 if (newPattern.equals(pattern)) { in TestReplacingZoneString()
666 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString()
673 …led parse with VVVV:\t" + locales[i] + ",\t\"" + pattern + "\",\t\"" + newPattern + "\",\t\"" + fo… in TestReplacingZoneString()
675 …roundtrip with VVVV:\t" + locales[i] + ",\t\"" + pattern + "\",\t\"" + newPattern + "\",\t\"" + fo… in TestReplacingZoneString()
677 … logln(locales[i] + ":\t\"" + pattern + "\" => \t\"" + newPattern + "\"\t" + formatted); in TestReplacingZoneString()
DNumberFormatTest.java5394 String newPattern = fmt.toPattern();
5395 assertEquals("Should produce a valid pattern", pattern, newPattern);
5397 DecimalFormat fmt2 = new DecimalFormat(newPattern);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateTimeGeneratorTest.java178 String newPattern = gen.replaceFieldTypes(pattern, "vvvv"); in TestSimple() local
179 format.applyPattern(newPattern); in TestSimple()
664 …String newPattern = dtpgen.replaceFieldTypes(pattern, "VVVV"); // replaceZoneString(pattern, "VVVV… in TestReplacingZoneString() local
665 if (newPattern.equals(pattern)) { in TestReplacingZoneString()
669 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString()
676 …led parse with VVVV:\t" + locales[i] + ",\t\"" + pattern + "\",\t\"" + newPattern + "\",\t\"" + fo… in TestReplacingZoneString()
678 …roundtrip with VVVV:\t" + locales[i] + ",\t\"" + pattern + "\",\t\"" + newPattern + "\",\t\"" + fo… in TestReplacingZoneString()
680 … logln(locales[i] + ":\t\"" + pattern + "\" => \t\"" + newPattern + "\"\t" + formatted); in TestReplacingZoneString()
DNumberFormatTest.java5397 String newPattern = fmt.toPattern();
5398 assertEquals("Should produce a valid pattern", pattern, newPattern);
5400 DecimalFormat fmt2 = new DecimalFormat(newPattern);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateTimePatternGenerator.java2080 StringBuilder newPattern = new StringBuilder(); in adjustFieldTypes() local
2083 newPattern.append(fp.quoteLiteral((String)item)); in adjustFieldTypes()
2159 newPattern.append(fieldBuilder); in adjustFieldTypes()
2163 return newPattern.toString(); in adjustFieldTypes()
2184 StringBuilder newPattern = new StringBuilder(); in getFields() local
2187 newPattern.append(fp.quoteLiteral((String)item)); in getFields()
2189 newPattern.append("{" + getName(item.toString()) + "}"); in getFields()
2192 return newPattern.toString(); in getFields()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDateTimePatternGenerator.java2051 StringBuilder newPattern = new StringBuilder(); in adjustFieldTypes() local
2054 newPattern.append(fp.quoteLiteral((String)item)); in adjustFieldTypes()
2130 newPattern.append(fieldBuilder); in adjustFieldTypes()
2134 return newPattern.toString(); in adjustFieldTypes()
2156 StringBuilder newPattern = new StringBuilder(); in getFields() local
2159 newPattern.append(fp.quoteLiteral((String)item)); in getFields()
2161 newPattern.append("{" + getName(item.toString()) + "}"); in getFields()
2164 return newPattern.toString(); in getFields()
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h493 ChoiceFormat(const UnicodeString& newPattern,
/external/icu/icu4c/source/test/intltest/
Ddtptngts.cpp551 UnicodeString newPattern = gen->replaceFieldTypes(pattern, UnicodeString("vvvv"), status); in testAPI() local
552 format->applyPattern(newPattern); in testAPI()