/external/icu/android_icu4j/testing/src/android/icu/extratest/number/ |
D | FormattedNumberTest.java | 23 FormattedNumber formattedNumber = in test_enUS() local 25 assertEquals("Test toString()", "123.45", formattedNumber.toString()); in test_enUS() 26 assertEquals("Test charAt()", '2', formattedNumber.charAt(1)); in test_enUS() 27 assertEquals("Test length()", 6, formattedNumber.length()); in test_enUS() 28 assertEquals("Test subSequence()", "3.4", formattedNumber.subSequence(2,5)); in test_enUS() 30 formattedNumber.toBigDecimal()); in test_enUS()
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
D | ElemNumber.java | 1163 FastStringBuffer formattedNumber = StringBufferPool.get(); in formatNumberList() local 1259 formattedNumber.append(formatTokenString); in formatNumberList() 1262 formattedNumber.append(lastSep); in formatNumberList() 1265 list[i], formattedNumber); in formatNumberList() 1278 formattedNumber.append(lastSepString); in formatNumberList() 1284 formattedNumber.append(formatToken); in formatNumberList() 1287 numStr = formattedNumber.toString(); in formatNumberList() 1291 StringBufferPool.free(formattedNumber); in formatNumberList() 1317 FastStringBuffer formattedNumber) in getFormattedNumber() argument 1343 int2alphaCount(listElement, m_alphaCountTable, formattedNumber); in getFormattedNumber() [all …]
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 1213 StringBuilder formattedNumber = new StringBuilder(20); 1214 format(number, numberFormat, formattedNumber); 1215 return formattedNumber.toString(); 1223 StringBuilder formattedNumber) { 1225 formattedNumber.setLength(0); 1232 formattedNumber.append(nationalSignificantNumber); 1234 formattedNumber); 1238 formattedNumber.append(nationalSignificantNumber); 1249 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat)); 1250 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber); [all …]
|
D | AsYouTypeFormatter.java | 364 String formattedNumber = attemptToFormatAccruedDigits(); in inputDigitWithOptionToRememberPosition() local 365 if (formattedNumber.length() > 0) { in inputDigitWithOptionToRememberPosition() 366 return formattedNumber; in inputDigitWithOptionToRememberPosition() 428 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits() local 435 String fullOutput = appendNationalNumber(formattedNumber); in attemptToFormatAccruedDigits() 498 String formattedNumber = attemptToFormatAccruedDigits(); in attemptToChooseFormattingPattern() local 499 if (formattedNumber.length() > 0) { in attemptToChooseFormattingPattern() 500 return formattedNumber; in attemptToChooseFormattingPattern()
|
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/ |
D | PhoneNumberUtil.java | 1248 StringBuilder formattedNumber = new StringBuilder(20); 1249 format(number, numberFormat, formattedNumber); 1250 return formattedNumber.toString(); 1258 StringBuilder formattedNumber) { 1260 formattedNumber.setLength(0); 1267 formattedNumber.append(nationalSignificantNumber); 1269 formattedNumber); 1273 formattedNumber.append(nationalSignificantNumber); 1284 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat)); 1285 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber); [all …]
|
D | AsYouTypeFormatter.java | 369 String formattedNumber = attemptToFormatAccruedDigits(); in inputDigitWithOptionToRememberPosition() local 370 if (formattedNumber.length() > 0) { in inputDigitWithOptionToRememberPosition() 371 return formattedNumber; in inputDigitWithOptionToRememberPosition() 433 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits() local 440 String fullOutput = appendNationalNumber(formattedNumber); in attemptToFormatAccruedDigits() 504 String formattedNumber = attemptToFormatAccruedDigits(); in attemptToChooseFormattingPattern() local 505 if (formattedNumber.length() > 0) { in attemptToChooseFormattingPattern() 506 return formattedNumber; in attemptToChooseFormattingPattern()
|
/external/icu/icu4c/source/i18n/ |
D | quantityformatter.cpp | 124 UnicodeString formattedNumber; in format() local 125 StandardPlural::Form p = selectPlural(number, fmt, rules, formattedNumber, pos, status); in format() 137 return format(*pattern, formattedNumber, appendTo, pos, status); in format() 147 UnicodeString &formattedNumber, in selectPlural() argument 162 decFmt->format(number, formattedNumber, pos, status); in selectPlural() 174 fmt.format(number, formattedNumber, pos, status); in selectPlural()
|
D | quantityformatter.h | 121 UnicodeString &formattedNumber,
|
D | measfmt.cpp | 690 UnicodeString formattedNumber; in formatMeasure() local 692 amtNumber, nf, **pluralRules, formattedNumber, pos, status); in formatMeasure() 700 return QuantityFormatter::format(formatter, formattedNumber, appendTo, pos, status); in formatMeasure()
|
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
D | PresenceContact.java | 47 public PresenceContact(String name, String number, String formattedNumber, String rawContactId, in PresenceContact() argument 51 mFormattedNumber = formattedNumber; in PresenceContact()
|
D | EABDbUtil.java | 130 String formattedNumber = formatNumber(contactNumber); in validateAndSyncFromContactsDb() local 131 String uniquePhoneNum = formattedNumber + contactId in validateAndSyncFromContactsDb() 138 formattedNumber, rawContactId, contactId, dataId)); in validateAndSyncFromContactsDb() 142 + " formattedNumber: " + formattedNumber); in validateAndSyncFromContactsDb() 193 String phoneNumber, String formattedNumber, String rawContactId, String contactId, in addContactToEabDb() argument 199 .withValue(EABContract.EABColumns.FORMATTED_NUMBER, formattedNumber) in addContactToEabDb()
|
D | EABProvider.java | 401 String formattedNumber = null; in verifyIfMdnExists() local 406 formattedNumber = cvalues.getAsString(EABContract.EABColumns.FORMATTED_NUMBER); in verifyIfMdnExists() 410 if (null == formattedNumber) { in verifyIfMdnExists() 427 String[] selectionArgs = new String[] { formattedNumber }; in verifyIfMdnExists() 440 if(contactNumberUtils.format(formattedNumber).equals( in verifyIfMdnExists()
|
D | EABService.java | 971 String formattedNumber = EABDbUtil.formatNumber(phoneNumber); in handlePhoneNumberInsertion() local 973 contactListToInsert.add(new PresenceContact(contactName, phoneNumber, formattedNumber, in handlePhoneNumberInsertion()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | VerifyCompactNumbers.java | 246 String formattedNumber = nf.format(source); in showNumbers() local 255 .addCell(formattedNumber) in showNumbers()
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_api.cpp | 3174 const char16_t* message, const FormattedNumber& formattedNumber, in assertNumberFieldPositions() argument 3181 static_cast<const FormattedValue&>(formattedNumber), in assertNumberFieldPositions() 3182 formattedNumber.toString(status), in assertNumberFieldPositions() 3188 …UnicodeString baseMessage = UnicodeString(message) + u": " + formattedNumber.toString(status) + u"… in assertNumberFieldPositions() 3190 formattedNumber.getAllFieldPositions(fpi, status); in assertNumberFieldPositions() 3213 UBool found = formattedNumber.nextFieldPosition(actual2, status); in assertNumberFieldPositions() 3236 found = formattedNumber.nextFieldPosition(actual2, status); in assertNumberFieldPositions()
|
D | numbertest.h | 131 const FormattedNumber& formattedNumber,
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | ExampleGenerator.java | 1118 String formattedNumber = unitDecimalFormat.format(example.getSource()); in formatCurrency() local 1120 resultItem = unitPattern.replace("{0}", formattedNumber).replace("{1}", unitName); in formatCurrency()
|