Home
last modified time | relevance | path

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

12

/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.cpp101 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); in TestHebrewFraction() local
107 formatter->format(123.45, result); in TestHebrewFraction()
111 formatter->parse(result, parseResult, pp); in TestHebrewFraction()
120 formatter->format(123.0045, result); in TestHebrewFraction()
125 formatter->parse(result, parseResult, pp); in TestHebrewFraction()
131 delete formatter; in TestHebrewFraction()
140 RuleBasedNumberFormat* formatter in TestAPI() local
147 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI()
149 if(!(*rbnfClone == *formatter)) { in TestAPI()
162 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 …]
Dnumrgts.cpp866 NumberFormat *formatter; in Test4070798() local
890 formatter = NumberFormat::createInstance(Locale(loc), status); in Test4070798()
893 delete formatter; in Test4070798()
897 tempString = formatter->format (-5789.9876, tempString); in Test4070798()
906 delete formatter; in Test4070798()
908 formatter = NumberFormat::createCurrencyInstance(loc, status); in Test4070798()
911 tempString = formatter->format( 5789.9876, tempString ); in Test4070798()
920 delete formatter; in Test4070798()
923 formatter = NumberFormat::createPercentInstance(Locale(loc), status); in Test4070798()
926 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);
Ddtfmttst.cpp516 SimpleDateFormat *formatter = new SimpleDateFormat(format, status); in TestRunTogetherPattern985() local
519 ((DateFormat*)formatter)->format(date1, now); in TestRunTogetherPattern985()
522 UDate date2 = formatter->parse(now, pos); in TestRunTogetherPattern985()
524 else ((DateFormat*)formatter)->format(date2, then); in TestRunTogetherPattern985()
527 delete formatter; in TestRunTogetherPattern985()
639 SimpleDateFormat *formatter = new SimpleDateFormat(bigD, status); in TestLetterDPattern212() local
642 UDate myDate = formatter->parse(dateString, pos); in TestLetterDPattern212()
645 delete formatter; in TestLetterDPattern212()
646 formatter = new SimpleDateFormat(littleD, status); in TestLetterDPattern212()
649 myDate = formatter->parse(dateString, pos); in TestLetterDPattern212()
[all …]
Ditrbnf.h132 …virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testP…
133 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
Dmiscdtfm.cpp114 SimpleDateFormat *formatter; in test4097450() local
123 formatter = new SimpleDateFormat(dformat[i], status); in test4097450()
128 logln(resultFormatter->format(formatter->parse(dstring[i], status), str, pos)); in test4097450()
136 delete formatter; in test4097450()
Ddtfmrgts.cpp338 SimpleDateFormat *formatter = new SimpleDateFormat(UnicodeString("yyyy-DDD.hh:mm:ss"), status); in Test4060212() local
341 UDate myDate = formatter->parse( dateString, pos ); in Test4060212()
347 delete formatter; in Test4060212()
363 delete formatter; in Test4060212()
364 formatter = NULL; in Test4060212()
365 formatter = new SimpleDateFormat(UnicodeString("yyyy-ddd.hh:mm:ss"), status); in Test4060212()
368 myDate = formatter->parse( dateString, pos ); in Test4060212()
377 delete formatter; in Test4060212()
Ditrbnfrt.h85 void doTest(const RuleBasedNumberFormat* formatter, double lowLimit, double highLimit);
Dtsmthred.cpp902 NumberFormat *formatter = NULL; in run() local
982 formatter = NumberFormat::createInstance(Locale::getEnglish(),status); in run()
1001 formatter->format(kNumberFormatTestData[whichLine].number, output); in run()
1089 delete formatter; in run()
/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/icu4c/i18n/
Dnfsubs.cpp50 const RuleBasedNumberFormat* formatter,
73 const RuleBasedNumberFormat* formatter, in MultiplierSubstitution() argument
76 : NFSubstitution(_pos, _ruleSet, formatter, description, status), divisor(_divisor) in MultiplierSubstitution()
129 const RuleBasedNumberFormat* formatter,
176 const RuleBasedNumberFormat* formatter, in IntegralPartSubstitution() argument
179 : NFSubstitution(_pos, _ruleSet, formatter, description, status) {} in IntegralPartSubstitution()
199 const RuleBasedNumberFormat* formatter,
230 const RuleBasedNumberFormat* formatter, in AbsoluteValueSubstitution() argument
233 : NFSubstitution(_pos, _ruleSet, formatter, description, status) {} in AbsoluteValueSubstitution()
261 const RuleBasedNumberFormat* formatter, in NumeratorSubstitution() argument
[all …]
Dnfrule.cpp39 , formatter(_rbnf) in NFRule()
1026 formatter->isLenient(), in matchToDelimiter()
1075 formatter->isLenient(), in matchToDelimiter()
1123 if (formatter->isLenient()) { in prefixLength()
1131 RuleBasedCollator* collator = (RuleBasedCollator*)formatter->getCollator(); in prefixLength()
1304 if (!formatter->isLenient()) { in findText()
1420 if (formatter->isLenient()) { in allIgnorable()
1421 RuleBasedCollator* collator = (RuleBasedCollator*)(formatter->getCollator()); in allIgnorable()
Dnfrule.h101 const RuleBasedNumberFormat* formatter; variable
/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()
DHttpResponseWriter.java46 final LineFormatter formatter, in HttpResponseWriter() argument
48 super(buffer, formatter, params); in HttpResponseWriter()
DHttpRequestWriter.java46 final LineFormatter formatter, in HttpRequestWriter() argument
48 super(buffer, formatter, params); in HttpRequestWriter()
/external/icu4c/tools/tzcode/
Dicuzdump.cpp93 formatter = new DumpFormatter(); in ICUZDump()
120 formatter = fmt; in setDumpFormatter()
170 formatter->format(lot, rawOffset + dstOffset, (dstOffset == 0 ? FALSE : TRUE), str); in dump()
173formatter->format(hit, newRawOffset + newDstOffset, (newDstOffset == 0 ? FALSE : TRUE), str); in dump()
207 DumpFormatter* formatter; member in ICUZDump
/external/apache-http/src/org/apache/http/impl/cookie/
DDateUtils.java200 SimpleDateFormat formatter = DateFormatHolder.formatFor(pattern); in formatDate() local
201 return formatter.format(date); in formatDate()
/external/icu4c/test/cintltst/
Dcdtrgtst.c277 UDateFormat *formatter, *fmt; in Test4060212() local
289formatter = udat_open(UDAT_IGNORE,UDAT_IGNORE,"en_US",tzID,-1,pattern, u_strlen(pattern), &status); in Test4060212()
291 myDate = udat_parse(formatter, dateString, u_strlen(dateString), &pos, &status); in Test4060212()
311 udat_close(formatter); in Test4060212()
Dcmsgtst.c182 UMessageFormat formatter = umsg_open(testCasePatterns[0],patternLength,"en_US",NULL,&ec); in MessageFormatTest() local
198 umsg_applyPattern(formatter,testCasePatterns[i],patternLength,&parseError,&ec); in MessageFormatTest()
204 resultLength = umsg_format(formatter,result,resultLength,&ec,1,3456.00,d1); in MessageFormatTest()
208 resultLength = umsg_format(formatter,result,resultLength+2,&ec,1,3456.00,d1); in MessageFormatTest()
231 umsg_parse(formatter,result,resultLength,&count,&ec,one,two,d2); in MessageFormatTest()
242 umsg_parse(formatter,result,resultLength,&count,&ec,&one,&two,&d2); in MessageFormatTest()
251 umsg_close(formatter); in MessageFormatTest()
/external/webkit/WebCore/inspector/front-end/
DConsole.js499 var formatter;
501 formatter = "_formatvalue";
503 formatter = "_format" + type;
504 if (!(formatter in this)) {
505 formatter = "_formatobject";
512 this[formatter](output, span, inline);
/external/jdiff/src/jdiff/
DHTMLStatistics.java54 SimpleDateFormat formatter in emitStatistics() local
80 h_.writeText(" <td class=\"diffvalue\">" + formatter.format( day ) + "</td>"); in emitStatistics()

12