/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MessageFormat.java | 718 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex() argument 726 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentIndex() 750 public void setFormatByArgumentName(String argumentName, Format newFormat) { in setFormatByArgumentName() argument 757 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentName() 780 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat() argument 784 setCustomArgStartFormat(partIndex, newFormat); in setFormat() 2229 Format newFormat = null; in createAppropriateFormat() local 2235 newFormat = NumberFormat.getInstance(ulocale); in createAppropriateFormat() 2238 newFormat = NumberFormat.getCurrencyInstance(ulocale); in createAppropriateFormat() 2241 newFormat = NumberFormat.getPercentInstance(ulocale); in createAppropriateFormat() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | MessageFormat.java | 703 public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { in setFormatByArgumentIndex() argument 711 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentIndex() 734 public void setFormatByArgumentName(String argumentName, Format newFormat) { in setFormatByArgumentName() argument 741 setCustomArgStartFormat(partIndex, newFormat); in setFormatByArgumentName() 763 public void setFormat(int formatElementIndex, Format newFormat) { in setFormat() argument 767 setCustomArgStartFormat(partIndex, newFormat); in setFormat() 2185 Format newFormat = null; in createAppropriateFormat() local 2191 newFormat = NumberFormat.getInstance(ulocale); in createAppropriateFormat() 2194 newFormat = NumberFormat.getCurrencyInstance(ulocale); in createAppropriateFormat() 2197 newFormat = NumberFormat.getPercentInstance(ulocale); in createAppropriateFormat() [all …]
|
/third_party/libphonenumber/migrator/src/main/java/com/google/phonenumbers/migrator/ |
D | MigrationJob.java | 161 String newFormat = (String) recipeRow.get(RecipesTableSchema.NEW_FORMAT); in migrate() local 167 DigitSequence migratedVal = getMigratedValue(migratingNumber.toString(), oldFormat, newFormat); in migrate() 191 private DigitSequence getMigratedValue(String staleString, String oldFormat, String newFormat) { in getMigratedValue() argument 200 for (int i = 0; i < Math.max(oldFormat.length(), newFormat.length()); i++) { in getMigratedValue() 201 if (i < newFormat.length() && i == newFormatPointer in getMigratedValue() 202 && Character.isDigit(newFormat.charAt(i))) { in getMigratedValue() 204 migratedValue.insert(newFormatPointer, newFormat.charAt(newFormatPointer++)); in getMigratedValue() 205 } while (newFormatPointer < newFormat.length() in getMigratedValue() 206 && Character.isDigit(newFormat.charAt(newFormatPointer))); in getMigratedValue()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | msgfmt.cpp | 661 Format* newFormat = nullptr; in setFormats() local 663 newFormat = newFormats[formatNumber]->clone(); in setFormats() 664 if (newFormat == nullptr) { in setFormats() 668 setCustomArgStartFormat(partIndex, newFormat, status); in setFormats() 681 MessageFormat::adoptFormat(int32_t n, Format *newFormat) { in adoptFormat() argument 682 LocalPointer<Format> p(newFormat); in adoptFormat() 737 MessageFormat::setFormat(int32_t n, const Format& newFormat) { in setFormat() argument 744 Format* new_format = newFormat.clone(); in setFormat() 781 const Format& newFormat, in setFormat() argument 794 Format* new_format = newFormat.clone(); in setFormat() [all …]
|
D | smpdtfmt.cpp | 2119 const SharedNumberFormat *newFormat = createSharedNumberFormat(fmt.orphan()); in adoptNumberFormat() local 2120 if (newFormat == nullptr) { in adoptNumberFormat() 2130 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat() 2136 newFormat, fSharedNumberFormatters[patternCharIndex]); in adoptNumberFormat() 2138 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat()
|
/third_party/icu/icu4c/source/i18n/ |
D | msgfmt.cpp | 660 Format* newFormat = NULL; in setFormats() local 662 newFormat = newFormats[formatNumber]->clone(); in setFormats() 663 if (newFormat == NULL) { in setFormats() 667 setCustomArgStartFormat(partIndex, newFormat, status); in setFormats() 680 MessageFormat::adoptFormat(int32_t n, Format *newFormat) { in adoptFormat() argument 681 LocalPointer<Format> p(newFormat); in adoptFormat() 736 MessageFormat::setFormat(int32_t n, const Format& newFormat) { in setFormat() argument 743 Format* new_format = newFormat.clone(); in setFormat() 780 const Format& newFormat, in setFormat() argument 793 Format* new_format = newFormat.clone(); in setFormat() [all …]
|
D | smpdtfmt.cpp | 2151 const SharedNumberFormat *newFormat = createSharedNumberFormat(fmt.orphan()); in adoptNumberFormat() local 2152 if (newFormat == NULL) { in adoptNumberFormat() 2162 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat() 2168 newFormat, fSharedNumberFormatters[patternCharIndex]); in adoptNumberFormat() 2170 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | msgfmt.cpp | 660 Format* newFormat = NULL; in setFormats() local 662 newFormat = newFormats[formatNumber]->clone(); in setFormats() 663 if (newFormat == NULL) { in setFormats() 667 setCustomArgStartFormat(partIndex, newFormat, status); in setFormats() 680 MessageFormat::adoptFormat(int32_t n, Format *newFormat) { in adoptFormat() argument 681 LocalPointer<Format> p(newFormat); in adoptFormat() 736 MessageFormat::setFormat(int32_t n, const Format& newFormat) { in setFormat() argument 743 Format* new_format = newFormat.clone(); in setFormat() 780 const Format& newFormat, in setFormat() argument 793 Format* new_format = newFormat.clone(); in setFormat() [all …]
|
D | smpdtfmt.cpp | 2103 const SharedNumberFormat *newFormat = createSharedNumberFormat(fmt.orphan()); in adoptNumberFormat() local 2104 if (newFormat == NULL) { in adoptNumberFormat() 2114 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat() 2120 newFormat, fSharedNumberFormatters[patternCharIndex]); in adoptNumberFormat() 2122 newFormat->deleteIfZeroRefCount(); in adoptNumberFormat()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | DateTimeGeneratorTest.java | 669 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString() local 670 newFormat.setTimeZone(testTimeZone); in TestReplacingZoneString() 671 String formatted = newFormat.format(testDate); in TestReplacingZoneString() 674 newFormat.parse(formatted, calendar, parsePosition); in TestReplacingZoneString()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateTimeGeneratorTest.java | 666 SimpleDateFormat newFormat = new SimpleDateFormat(newPattern, locales[i]); in TestReplacingZoneString() local 667 newFormat.setTimeZone(testTimeZone); in TestReplacingZoneString() 668 String formatted = newFormat.format(testDate); in TestReplacingZoneString() 671 newFormat.parse(formatted, calendar, parsePosition); in TestReplacingZoneString()
|
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 1841 NumberFormat.Builder newFormat = NumberFormat.newBuilder(); 1842 newFormat.mergeFrom(formattingPattern); 1844 newFormat.setPattern("(\\d+)(.*)"); 1846 newFormat.setFormat("$1$2"); 1852 return formatNsnUsingPattern(rawInput, newFormat.build(), PhoneNumberFormat.NATIONAL);
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-layout-gpos-table.hh | 805 ValueFormat newFormat, in serialize() 810 newFormat, in serialize() 815 src->get_value_format ().copy_values (c, newFormat, src, &_, layout_variation_idx_map); in serialize() 925 ValueFormat newFormat, in serialize() 930 … if (unlikely (!c->check_assign (valueFormat, newFormat, HB_SERIALIZE_ERROR_INT_OVERFLOW))) return; in serialize() 936 { src->get_value_format ().copy_values (c, newFormat, src, &_, layout_variation_idx_map); }) in serialize()
|
/third_party/libphonenumber/javascript/i18n/phonenumbers/ |
D | phonenumberutil.js | 2525 var newFormat = formattingPattern.clone(); 2528 newFormat.setPattern('(\\d+)(.*)'); 2531 newFormat.setFormat('$1$2'); 2538 return this.formatNsnUsingPattern_(rawInput, newFormat,
|