Home
last modified time | relevance | path

Searched refs:formatter (Results 1 – 25 of 100) sorted by relevance

1234

/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
DAsYouTypeFormatterTest.java30 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/objenesis/tck/.settings/
Dorg.eclipse.jdt.core.prefs14 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
15 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
17 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
18 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
19 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
20 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
21 org.eclipse.jdt.core.formatter.alignment_for_assignment=0
22 org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
23 org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
[all …]
/external/objenesis/main/.settings/
Dorg.eclipse.jdt.core.prefs14 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
15 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
16 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
17 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
18 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
19 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
20 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
21 org.eclipse.jdt.core.formatter.alignment_for_assignment=0
22 org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
23 org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
[all …]
/external/icu4c/test/intltest/
Ditrbnfrt.cpp64 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 …]
Ditrbnf.cpp103 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); in TestHebrewFraction() local
106 delete formatter; in TestHebrewFraction()
114 formatter->format(123.45, result); in TestHebrewFraction()
127 formatter->format(123.0045, result); in TestHebrewFraction()
138 delete formatter; in TestHebrewFraction()
147 RuleBasedNumberFormat* formatter in TestAPI() local
151 delete formatter; in TestAPI()
159 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI()
161 if(!(*rbnfClone == *formatter)) { in TestAPI()
174 assignResult = *formatter; in TestAPI()
[all …]
Ditrbnfp.cpp125 … 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 …]
Dlistformattertest.cpp26 void ListFormatterTest::CheckFormatting(const ListFormatter* formatter, UnicodeString data[], int32… in CheckFormatting() argument
30 formatter->format(data, dataSize, actualResult, errorCode); in CheckFormatting()
40 ListFormatter* formatter = ListFormatter::createInstance(Locale(locale_string), errorCode); in CheckFourCases() local
41 if (formatter == NULL || U_FAILURE(errorCode)) { in CheckFourCases()
46 CheckFormatting(formatter, input1, 1, results[0]); in CheckFourCases()
49 CheckFormatting(formatter, input2, 2, results[1]); in CheckFourCases()
52 CheckFormatting(formatter, input3, 3, results[2]); in CheckFourCases()
55 CheckFormatting(formatter, input4, 4, results[3]); in CheckFourCases()
57 delete formatter; in CheckFourCases()
189 ListFormatter formatter(data); in TestOutOfOrderPatterns() local
[all …]
Dnumrgts.cpp885 NumberFormat *formatter; in Test4070798() local
909 formatter = NumberFormat::createInstance(Locale(loc), status); in Test4070798()
912 delete formatter; in Test4070798()
916 tempString = formatter->format (-5789.9876, tempString); in Test4070798()
925 delete formatter; in Test4070798()
927 formatter = NumberFormat::createCurrencyInstance(loc, status); in Test4070798()
930 tempString = formatter->format( 5789.9876, tempString ); in Test4070798()
939 delete formatter; in Test4070798()
942 formatter = NumberFormat::createPercentInstance(Locale(loc), status); in Test4070798()
945 tempString = formatter->format (-5789.9876, tempString); in Test4070798()
[all …]
Ditrbnfp.h31 void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
32 void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
/external/chromium/base/i18n/
Dtime_formatting.cc19 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/
DLocalizedNumberICU.cpp48 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/
DBasicLineFormatter.java110 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 …]
DBasicHeaderValueFormatter.java99 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/
DXMLFormatterTest.java38 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/
DFuncFormatNumb.java60 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/
Dformat_output.cpp94 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 …]
Dformat_output.h41 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/
Dudateintervalformat.cpp41 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()
Dnfsubs.cpp51 const RuleBasedNumberFormat* formatter,
77 const RuleBasedNumberFormat* formatter, in MultiplierSubstitution() argument
80 : NFSubstitution(_pos, _ruleSet, formatter, description, status), divisor(_divisor) in MultiplierSubstitution()
136 const RuleBasedNumberFormat* formatter,
188 const RuleBasedNumberFormat* formatter, in IntegralPartSubstitution() argument
191 : NFSubstitution(_pos, _ruleSet, formatter, description, status) {} in IntegralPartSubstitution()
214 const RuleBasedNumberFormat* formatter,
248 const RuleBasedNumberFormat* formatter, in AbsoluteValueSubstitution() argument
251 : NFSubstitution(_pos, _ruleSet, formatter, description, status) {} in AbsoluteValueSubstitution()
282 const RuleBasedNumberFormat* formatter, in NumeratorSubstitution() argument
[all …]
/external/webkit/Source/WebCore/inspector/front-end/
DAuditFormatters.js33 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/
DLocalizedNumberMac.mm45 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/harfbuzz_ng/test/shaping/
Dhb-diff-colorize5 formatter = ColorFormatter.Auto (sys.argv) variable
6 colorizer = DiffColorizer (formatter=formatter)
Dhb_test_tools.py71 def __init__ (self, formatter, colors=diff_colors, symbols=diff_symbols): argument
72 self.formatter = formatter
87 oo[i] += self.formatter.end_color ()
89 oo = [o + self.formatter.escape (l[2:]) for o in oo]
94 oo[i] += self.formatter.start_color (self.colors[i])
96 oo[i] += self.formatter.escape (l[2:])
100 oo[i] += self.formatter.end_color ()
103 return [s1+s2+self.formatter.newline () for (s1,s2) in zip (self.symbols, oo) if s2]
109 yield self.formatter.escape (l).replace ('\n', self.formatter.newline ())
/external/proguard/src/proguard/gui/
DGUIResources.java35 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/
DAbstractMessageWriter.java54 final LineFormatter formatter, in AbstractMessageWriter() argument
62 this.lineFormatter = (formatter != null) ? in AbstractMessageWriter()
63 formatter : BasicLineFormatter.DEFAULT; in AbstractMessageWriter()

1234