/external/libphonenumber/java/test/com/android/i18n/phonenumbers/ |
D | AsYouTypeFormatterTest.java | 30 AsYouTypeFormatter formatter = phoneUtil.getAsYouTypeFormatter(RegionCode.ZZ); in testInvalidRegion() local 31 assertEquals("+", formatter.inputDigit('+')); in testInvalidRegion() 32 assertEquals("+4", formatter.inputDigit('4')); in testInvalidRegion() 33 assertEquals("+48 ", formatter.inputDigit('8')); in testInvalidRegion() 34 assertEquals("+48 8", formatter.inputDigit('8')); in testInvalidRegion() 35 assertEquals("+48 88", formatter.inputDigit('8')); in testInvalidRegion() 36 assertEquals("+48 88 1", formatter.inputDigit('1')); in testInvalidRegion() 37 assertEquals("+48 88 12", formatter.inputDigit('2')); in testInvalidRegion() 38 assertEquals("+48 88 123", formatter.inputDigit('3')); in testInvalidRegion() 39 assertEquals("+48 88 123 1", formatter.inputDigit('1')); in testInvalidRegion() [all …]
|
/external/icu4c/test/intltest/ |
D | itrbnfrt.cpp | 64 RuleBasedNumberFormat* formatter in TestEnglishSpelloutRT() local 70 doTest(formatter, -12345678, 12345678); in TestEnglishSpelloutRT() 72 delete formatter; in TestEnglishSpelloutRT() 82 RuleBasedNumberFormat* formatter in TestDurationsRT() local 88 doTest(formatter, 0, 12345678); in TestDurationsRT() 90 delete formatter; in TestDurationsRT() 100 RuleBasedNumberFormat* formatter in TestSpanishSpelloutRT() local 106 doTest(formatter, -12345678, 12345678); in TestSpanishSpelloutRT() 108 delete formatter; in TestSpanishSpelloutRT() 118 RuleBasedNumberFormat* formatter in TestFrenchSpelloutRT() local [all …]
|
D | itrbnf.cpp | 102 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); in TestHebrewFraction() local 105 delete formatter; in TestHebrewFraction() 113 formatter->format(123.45, result); in TestHebrewFraction() 126 formatter->format(123.0045, result); in TestHebrewFraction() 137 delete formatter; in TestHebrewFraction() 146 RuleBasedNumberFormat* formatter in TestAPI() local 150 delete formatter; in TestAPI() 158 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI() 160 if(!(*rbnfClone == *formatter)) { in TestAPI() 173 assignResult = *formatter; in TestAPI() [all …]
|
D | itrbnfp.cpp | 125 … RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(rule, Locale::getUS(), perr, status); in TestParse() local 130 testfmt(formatter, 20, status); in TestParse() 131 testfmt(formatter, 1.23, status); in TestParse() 132 testfmt(formatter, -123, status); in TestParse() 133 testfmt(formatter, .123, status); in TestParse() 134 testfmt(formatter, 123, status); in TestParse() 140 delete formatter; in TestParse() 146 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status) { in testfmt() argument 148 formatter->format((const Formattable)val, us, status); in testfmt() 159 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status) { in testfmt() argument [all …]
|
D | numrgts.cpp | 882 NumberFormat *formatter; in Test4070798() local 906 formatter = NumberFormat::createInstance(Locale(loc), status); in Test4070798() 909 delete formatter; in Test4070798() 913 tempString = formatter->format (-5789.9876, tempString); in Test4070798() 922 delete formatter; in Test4070798() 924 formatter = NumberFormat::createCurrencyInstance(loc, status); in Test4070798() 927 tempString = formatter->format( 5789.9876, tempString ); in Test4070798() 936 delete formatter; in Test4070798() 939 formatter = NumberFormat::createPercentInstance(Locale(loc), status); in Test4070798() 942 tempString = formatter->format (-5789.9876, tempString); in Test4070798() [all …]
|
D | itrbnfp.h | 31 void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status); 32 void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
|
/external/chromium/base/i18n/ |
D | time_formatting.cc | 19 string16 TimeFormat(const icu::DateFormat* formatter, in TimeFormat() argument 21 DCHECK(formatter); in TimeFormat() 24 formatter->format(static_cast<UDate>(time.ToDoubleT() * 1000), date_string); in TimeFormat() 36 scoped_ptr<icu::DateFormat> formatter( in TimeFormatTimeOfDay() local 38 return TimeFormat(formatter.get(), time); in TimeFormatTimeOfDay() 64 icu::SimpleDateFormat formatter(generated_pattern, status); in TimeFormatTimeOfDayWithHourClockType() local 66 return TimeFormat(&formatter, time); in TimeFormatTimeOfDayWithHourClockType() 70 scoped_ptr<icu::DateFormat> formatter( in TimeFormatShortDate() local 72 return TimeFormat(formatter.get(), time); in TimeFormatShortDate() 76 scoped_ptr<icu::DateFormat> formatter( in TimeFormatShortDateNumeric() local [all …]
|
/external/webkit/Source/WebCore/platform/text/ |
D | LocalizedNumberICU.cpp | 48 OwnPtr<NumberFormat> formatter = adoptPtr(NumberFormat::createInstance(status)); in createFormatterForCurrentLocale() local 49 return U_SUCCESS(status) ? formatter.release() : 0; in createFormatterForCurrentLocale() 56 static NumberFormat* formatter = createFormatterForCurrentLocale().leakPtr(); in numberFormatter() local 57 return formatter; in numberFormatter() 64 NumberFormat* formatter = numberFormatter(); in parseLocalizedNumber() local 65 if (!formatter) in parseLocalizedNumber() 70 formatter->parse(numberUnicodeString, result, position); in parseLocalizedNumber() 80 NumberFormat* formatter = numberFormatter(); in formatLocalizedNumber() local 81 if (!formatter) in formatLocalizedNumber() 84 formatter->setMaximumFractionDigits(clampToInteger(fractionDigits)); in formatLocalizedNumber() [all …]
|
/external/apache-http/src/org/apache/http/message/ |
D | BasicLineFormatter.java | 110 LineFormatter formatter) { in formatProtocolVersion() argument 111 if (formatter == null) in formatProtocolVersion() 112 formatter = BasicLineFormatter.DEFAULT; in formatProtocolVersion() 113 return formatter.appendProtocolVersion(null, version).toString(); in formatProtocolVersion() 169 LineFormatter formatter) { in formatRequestLine() argument 170 if (formatter == null) in formatRequestLine() 171 formatter = BasicLineFormatter.DEFAULT; in formatRequestLine() 172 return formatter.formatRequestLine(null, reqline).toString(); in formatRequestLine() 229 LineFormatter formatter) { in formatStatusLine() argument 230 if (formatter == null) in formatStatusLine() [all …]
|
D | BasicHeaderValueFormatter.java | 99 HeaderValueFormatter formatter) { in formatElements() argument 100 if (formatter == null) in formatElements() 101 formatter = BasicHeaderValueFormatter.DEFAULT; in formatElements() 102 return formatter.formatElements(null, elems, quote).toString(); in formatElements() 168 HeaderValueFormatter formatter) { in formatHeaderElement() argument 169 if (formatter == null) in formatHeaderElement() 170 formatter = BasicHeaderValueFormatter.DEFAULT; in formatHeaderElement() 171 return formatter.formatHeaderElement(null, elem, quote).toString(); in formatHeaderElement() 256 HeaderValueFormatter formatter) { in formatParameters() argument 257 if (formatter == null) in formatParameters() [all …]
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | XMLFormatterTest.java | 38 XMLFormatter formatter = null; field in XMLFormatterTest 46 formatter = new XMLFormatter(); in setUp() 59 String result = formatter.format(lr); in testLocalFormat() 65 result = formatter.format(lr); in testLocalFormat() 71 result = formatter.format(lr); in testLocalFormat() 77 result = formatter.format(lr); in testLocalFormat() 94 String output = formatter.format(lr); 115 String output = formatter.format(lr); in testFormat() 135 String result = formatter.getHead(handler); 144 result = formatter.getHead(handler); [all …]
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
D | FuncFormatNumb.java | 60 java.text.DecimalFormat formatter = null; in execute() local 93 formatter = new java.text.DecimalFormat(); in execute() 95 formatter.setDecimalFormatSymbols(dfs); in execute() 96 formatter.applyLocalizedPattern(patternStr); in execute() 101 if (null == formatter) in execute() 109 formatter = new java.text.DecimalFormat(); in execute() 111 formatter.setDecimalFormatSymbols(dfs); in execute() 112 formatter.applyLocalizedPattern(patternStr); in execute() 121 formatter = new java.text.DecimalFormat(); in execute() 123 formatter.setDecimalFormatSymbols(dfs); in execute() [all …]
|
/external/oprofile/libpp/ |
D | format_output.cpp | 94 formatter::formatter(extra_images const & extra) in formatter() function in format_output::formatter 103 format_map[ff_vma] = field_description(9, "vma", &formatter::format_vma); in formatter() 104 format_map[ff_nr_samples] = field_description(9, "samples", &formatter::format_nr_samples); in formatter() 105 …format_map[ff_nr_samples_cumulated] = field_description(14, "cum. samples", &formatter::format_nr_… in formatter() 106 format_map[ff_percent] = field_description(9, "%", &formatter::format_percent); in formatter() 107 …format_map[ff_percent_cumulated] = field_description(11, "cum. %", &formatter::format_cumulated_pe… in formatter() 108 format_map[ff_linenr_info] = field_description(28, "linenr info", &formatter::format_linenr_info); in formatter() 109 format_map[ff_image_name] = field_description(25, "image name", &formatter::format_image_name); in formatter() 110 format_map[ff_app_name] = field_description(25, "app name", &formatter::format_app_name); in formatter() 111 format_map[ff_symb_name] = field_description(30, "symbol name", &formatter::format_symb_name); in formatter() [all …]
|
D | format_output.h | 41 class formatter { 43 formatter(extra_images const & extra); 44 virtual ~formatter(); 100 typedef std::string (formatter::*fct_format)(field_datum const &); 125 : width(w), header_name(h), formatter(f) {} in field_description() 129 fct_format formatter; member 177 class opreport_formatter : public formatter { 207 class cg_formatter : public formatter { 218 class diff_formatter : public formatter { 238 class xml_formatter : public formatter {
|
/external/icu4c/i18n/ |
D | udateintervalformat.cpp | 41 LocalPointer<DateIntervalFormat> formatter( in udtitvfmt_open() local 52 formatter->adoptTimeZone(zone); in udtitvfmt_open() 54 return (UDateIntervalFormat*)formatter.orphan(); in udtitvfmt_open() 59 udtitvfmt_close(UDateIntervalFormat *formatter) in udtitvfmt_close() argument 61 delete (DateIntervalFormat*)formatter; in udtitvfmt_close() 66 udtitvfmt_format(const UDateIntervalFormat* formatter, in udtitvfmt_format() argument 93 ((const DateIntervalFormat*)formatter)->format( &interval, res, fp, *status ); in udtitvfmt_format()
|
D | nfsubs.cpp | 51 const RuleBasedNumberFormat* formatter, 74 const RuleBasedNumberFormat* formatter, in MultiplierSubstitution() argument 77 : NFSubstitution(_pos, _ruleSet, formatter, description, status), divisor(_divisor) in MultiplierSubstitution() 130 const RuleBasedNumberFormat* formatter, 177 const RuleBasedNumberFormat* formatter, in IntegralPartSubstitution() argument 180 : NFSubstitution(_pos, _ruleSet, formatter, description, status) {} in IntegralPartSubstitution() 200 const RuleBasedNumberFormat* formatter, 231 const RuleBasedNumberFormat* formatter, in AbsoluteValueSubstitution() argument 234 : NFSubstitution(_pos, _ruleSet, formatter, description, status) {} in AbsoluteValueSubstitution() 262 const RuleBasedNumberFormat* formatter, in NumeratorSubstitution() argument [all …]
|
D | msgfmt.cpp | 198 void formatAndAppend(const Format* formatter, const Formattable& arg, UErrorCode& ec) { in formatAndAppend() argument 200 formatter->format(arg, s, ec); in formatAndAppend() 530 Format* formatter, in setArgStartFormat() argument 533 delete formatter; in setArgStartFormat() 539 delete formatter; in setArgStartFormat() 544 if (formatter == NULL) { in setArgStartFormat() 545 formatter = new DummyFormat(); in setArgStartFormat() 547 uhash_iput(cachedFormatters, argStart, formatter, &status); in setArgStartFormat() 561 Format* formatter, in setCustomArgStartFormat() argument 563 setArgStartFormat(argStart, formatter, status); in setCustomArgStartFormat() [all …]
|
/external/webkit/Source/WebCore/inspector/front-end/ |
D | AuditFormatters.js | 33 var formatter; 41 formatter = WebInspector.AuditFormatters.text; 47 formatter = WebInspector.AuditFormatters.concat; 50 formatter = WebInspector.AuditFormatters[value.type]; 54 if (!formatter) 57 return formatter.apply(null, args);
|
/external/webkit/Source/WebCore/platform/text/mac/ |
D | LocalizedNumberMac.mm | 45 RetainPtr<NSNumberFormatter> formatter(AdoptNS, [[NSNumberFormatter alloc] init]); 46 [formatter.get() setLocalizesFormat:YES]; 47 [formatter.get() setNumberStyle:NSNumberFormatterDecimalStyle]; 48 return formatter; 54 static NSNumberFormatter *formatter = createFormatterForCurrentLocale().leakRef(); 55 return formatter; 71 RetainPtr<NSNumberFormatter> formatter = numberFormatter(); 72 [formatter.get() setMaximumFractionDigits:fractionDigits]; 73 return String([formatter.get() stringFromNumber:number.get()]);
|
/external/proguard/src/proguard/gui/ |
D | GUIResources.java | 35 private static final MessageFormat formatter = new MessageFormat(""); field in GUIResources 53 formatter.applyPattern(messages.getString(messageKey)); in getMessage() 54 return formatter.format(messageArguments); in getMessage()
|
/external/apache-http/src/org/apache/http/impl/io/ |
D | AbstractMessageWriter.java | 54 final LineFormatter formatter, in AbstractMessageWriter() argument 62 this.lineFormatter = (formatter != null) ? in AbstractMessageWriter() 63 formatter : BasicLineFormatter.DEFAULT; in AbstractMessageWriter()
|
D | HttpResponseWriter.java | 46 final LineFormatter formatter, in HttpResponseWriter() argument 48 super(buffer, formatter, params); in HttpResponseWriter()
|
D | HttpRequestWriter.java | 46 final LineFormatter formatter, in HttpRequestWriter() argument 48 super(buffer, formatter, params); in HttpRequestWriter()
|
/external/webkit/Tools/Scripts/webkitpy/style/ |
D | checker.py | 344 formatter = logging.Formatter("%(levelname)s: %(message)s") 345 error_handler.setFormatter(formatter) 355 formatter = logging.Formatter("%(message)s") 356 non_error_handler.setFormatter(formatter) 369 formatter = logging.Formatter("%(name)s: %(levelname)-8s %(message)s") 370 handler.setFormatter(formatter)
|
/external/icu4c/i18n/unicode/ |
D | udateintervalformat.h | 118 udtitvfmt_close(UDateIntervalFormat *formatter); 168 udtitvfmt_format(const UDateIntervalFormat* formatter,
|