Home
last modified time | relevance | path

Searched refs:toAppendTo (Results 1 – 25 of 63) sorted by relevance

123

/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java66 …public StringBuffer format(java.math.BigDecimal number, StringBuffer toAppendTo, FieldPosition pos… in format() argument
67 return fJdkNfmt.format(number, toAppendTo, pos); in format()
71 public StringBuffer format(BigDecimal number, StringBuffer toAppendTo, FieldPosition pos) { in format() argument
72 return fJdkNfmt.format(number.toBigDecimal(), toAppendTo, pos); in format()
76 …public StringBuffer format(java.math.BigInteger number, StringBuffer toAppendTo, FieldPosition pos… in format() argument
77 return fJdkNfmt.format(number, toAppendTo, pos); in format()
85 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format() argument
92 fJdkNfmt.format(currAmt.getNumber(), toAppendTo, pos); in format() local
96 return toAppendTo; in format()
102 public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos) { in format() argument
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
DComplexFormat.java146 public StringBuffer format(Complex complex, StringBuffer toAppendTo, in format() argument
154 formatDouble(re, getRealFormat(), toAppendTo, pos); in format()
159 toAppendTo.append(" - "); in format()
160 formatDouble(-im, getImaginaryFormat(), toAppendTo, pos); in format()
161 toAppendTo.append(getImaginaryCharacter()); in format()
163 toAppendTo.append(" + "); in format()
164 formatDouble(im, getImaginaryFormat(), toAppendTo, pos); in format()
165 toAppendTo.append(getImaginaryCharacter()); in format()
168 return toAppendTo; in format()
185 public StringBuffer format(Object obj, StringBuffer toAppendTo, in format() argument
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/
DVector3DFormat.java202 public StringBuffer format(Vector3D vector, StringBuffer toAppendTo, in format() argument
209 toAppendTo.append(prefix); in format()
212 formatDouble(vector.getX(), format, toAppendTo, pos); in format() local
213 toAppendTo.append(separator); in format()
214 formatDouble(vector.getY(), format, toAppendTo, pos); in format() local
215 toAppendTo.append(separator); in format()
216 formatDouble(vector.getZ(), format, toAppendTo, pos); in format() local
219 toAppendTo.append(suffix); in format()
221 return toAppendTo; in format()
238 public StringBuffer format(Object obj, StringBuffer toAppendTo, in format() argument
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DBigFractionFormat.java138 final StringBuffer toAppendTo, final FieldPosition pos) { in format() argument
143 getNumeratorFormat().format(BigFraction.getNumerator(), toAppendTo, pos); in format() local
144 toAppendTo.append(" / "); in format()
145 getDenominatorFormat().format(BigFraction.getDenominator(), toAppendTo, pos); in format() local
147 return toAppendTo; in format()
166 final StringBuffer toAppendTo, final FieldPosition pos) { in format() argument
170 ret = format((BigFraction) obj, toAppendTo, pos); in format()
172 ret = format(new BigFraction((BigInteger) obj), toAppendTo, pos); in format()
175 toAppendTo, pos); in format()
DFractionFormat.java145 final StringBuffer toAppendTo, final FieldPosition pos) { in format() argument
150 getNumeratorFormat().format(fraction.getNumerator(), toAppendTo, pos); in format() local
151 toAppendTo.append(" / "); in format()
152 getDenominatorFormat().format(fraction.getDenominator(), toAppendTo, in format() local
155 return toAppendTo; in format()
173 final StringBuffer toAppendTo, final FieldPosition pos) { in format() argument
177 ret = format((Fraction) obj, toAppendTo, pos); in format()
181 toAppendTo, pos); in format()
DProperBigFractionFormat.java90 final StringBuffer toAppendTo, final FieldPosition pos) { in format() argument
101 getWholeFormat().format(whole, toAppendTo, pos); in format()
102 toAppendTo.append(' '); in format()
107 getNumeratorFormat().format(num, toAppendTo, pos); in format()
108 toAppendTo.append(" / "); in format()
109 getDenominatorFormat().format(den, toAppendTo, pos); in format()
111 return toAppendTo; in format()
DProperFractionFormat.java90 public StringBuffer format(Fraction fraction, StringBuffer toAppendTo, in format() argument
102 getWholeFormat().format(whole, toAppendTo, pos); in format()
103 toAppendTo.append(' '); in format()
106 getNumeratorFormat().format(num, toAppendTo, pos); in format()
107 toAppendTo.append(" / "); in format()
108 getDenominatorFormat().format(den, toAppendTo, in format()
111 return toAppendTo; in format()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DStepChartExampleActivity.java107 public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) { in onCreate()
111 toAppendTo.append("Init"); in onCreate()
114 toAppendTo.append("Idle"); in onCreate()
117 toAppendTo.append("Recv"); in onCreate()
120 toAppendTo.append("Send"); in onCreate()
123 toAppendTo.append("Unknown"); in onCreate()
126 return toAppendTo; in onCreate()
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DRealVectorFormat.java205 public StringBuffer format(RealVector vector, StringBuffer toAppendTo, in format() argument
212 toAppendTo.append(prefix); in format()
217 toAppendTo.append(separator); in format()
219 formatDouble(vector.getEntry(i), format, toAppendTo, pos); in format() local
223 toAppendTo.append(suffix); in format()
225 return toAppendTo; in format()
242 public StringBuffer format(Object obj, StringBuffer toAppendTo, in format() argument
246 return format( (RealVector)obj, toAppendTo, pos); in format()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java49 public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) { in format() argument
60 if (found && toAppendTo.length() != 0) { in format()
61 pos.setBeginIndex(pos.getBeginIndex() + toAppendTo.length()); in format()
62 pos.setEndIndex(pos.getEndIndex() + toAppendTo.length()); in format()
64 Utility.appendTo(string, toAppendTo); in format()
65 return toAppendTo; in format()
/external/cldr/tools/java/org/unicode/cldr/draft/
DUnicodeSetFormat.java34 public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) { in format() argument
36 int startPos = toAppendTo.length(); in format()
38 toAppendTo.append('['); in format()
47 appendQuoted(toAppendTo, it.codepoint); in format()
49 appendQuoted(toAppendTo.append('-'), it.codepointEnd); in format()
52 toAppendTo.append(']'); in format()
58 toAppendTo.insert(startPos, extras); in format()
59 toAppendTo.append(')'); in format()
61 return toAppendTo; in format()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java47 public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) { in format() argument
58 if (found && toAppendTo.length() != 0) { in format()
59 pos.setBeginIndex(pos.getBeginIndex() + toAppendTo.length()); in format()
60 pos.setEndIndex(pos.getEndIndex() + toAppendTo.length()); in format()
62 Utility.appendTo(string, toAppendTo); in format()
63 return toAppendTo; in format()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DCompositeFormat.java208 final StringBuffer toAppendTo, in formatDouble() argument
211 toAppendTo.append('('); in formatDouble()
212 toAppendTo.append(value); in formatDouble()
213 toAppendTo.append(')'); in formatDouble()
215 format.format(value, toAppendTo, pos); in formatDouble()
217 return toAppendTo; in formatDouble()
/external/icu/libicu/cts_headers/unicode/
Drbnf.h795 UnicodeString& toAppendTo,
807 UnicodeString& toAppendTo,
818 UnicodeString& toAppendTo,
834 UnicodeString& toAppendTo,
850 UnicodeString& toAppendTo,
866 UnicodeString& toAppendTo,
1073 …UnicodeString& format(int64_t number, NFRuleSet *ruleSet, UnicodeString& toAppendTo, UErrorCode& s…
1074 void format(double number, NFRuleSet& rs, UnicodeString& toAppendTo, UErrorCode& status) const;
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h795 UnicodeString& toAppendTo,
807 UnicodeString& toAppendTo,
818 UnicodeString& toAppendTo,
834 UnicodeString& toAppendTo,
850 UnicodeString& toAppendTo,
866 UnicodeString& toAppendTo,
1073 …UnicodeString& format(int64_t number, NFRuleSet *ruleSet, UnicodeString& toAppendTo, UErrorCode& s…
1074 void format(double number, NFRuleSet& rs, UnicodeString& toAppendTo, UErrorCode& status) const;
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DDateNumberFormat.java145 public StringBuffer format(double number, StringBuffer toAppendTo, in format() argument
151 public StringBuffer format(long numberL, StringBuffer toAppendTo, in format() argument
156 toAppendTo.append(minusSign); in format()
180 toAppendTo.append(decimalBuf, index, length); in format()
187 return toAppendTo; in format()
191 public StringBuffer format(BigInteger number, StringBuffer toAppendTo, in format() argument
197 public StringBuffer format(java.math.BigDecimal number, StringBuffer toAppendTo, in format() argument
204 StringBuffer toAppendTo, FieldPosition pos) { in format() argument
DRelativeDateFormat.java111 public StringBuffer format(Calendar cal, StringBuffer toAppendTo, in format() argument
152 fDateTimeFormat.format(cal, toAppendTo, fieldPosition); in format()
156 toAppendTo.append(relativeDayString); in format()
159 fDateTimeFormat.format(cal, toAppendTo, fieldPosition); in format()
170 fDateTimeFormat.format(cal, toAppendTo, fieldPosition); in format()
176 toAppendTo.append(relativeDayString); in format()
178 fDateFormat.format(cal, toAppendTo, fieldPosition); in format()
182 return toAppendTo; in format()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DDateNumberFormat.java141 public StringBuffer format(double number, StringBuffer toAppendTo, in format() argument
147 public StringBuffer format(long numberL, StringBuffer toAppendTo, in format() argument
152 toAppendTo.append(minusSign); in format()
176 toAppendTo.append(decimalBuf, index, length); in format()
183 return toAppendTo; in format()
187 public StringBuffer format(BigInteger number, StringBuffer toAppendTo, in format() argument
193 public StringBuffer format(java.math.BigDecimal number, StringBuffer toAppendTo, in format() argument
200 StringBuffer toAppendTo, FieldPosition pos) { in format() argument
/external/icu/icu4c/source/i18n/
Dformat.cpp112 UnicodeString& toAppendTo, in format() argument
115 if (U_FAILURE(status)) return toAppendTo; in format()
119 return format(obj, toAppendTo, pos, status); in format()
128 UnicodeString& toAppendTo, in format() argument
135 return toAppendTo; in format()
Drbnf.cpp1159 UnicodeString& toAppendTo, in format() argument
1162 return format((int64_t)number, toAppendTo, pos); in format()
1168 UnicodeString& toAppendTo, in format() argument
1173 format(number, defaultRuleSet, toAppendTo, status); in format()
1175 return toAppendTo; in format()
1181 UnicodeString& toAppendTo, in format() argument
1186 format(number, *defaultRuleSet, toAppendTo, status); in format()
1188 return toAppendTo; in format()
1195 UnicodeString& toAppendTo, in format() argument
1199 return format((int64_t)number, ruleSetName, toAppendTo, pos, status); in format()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedNumberFormat.java1160 StringBuffer toAppendTo, in format() argument
1166 if (toAppendTo.length() == 0) { in format()
1167 toAppendTo.append(adjustForContext(format(number, defaultRuleSet))); in format()
1170 toAppendTo.append(format(number, defaultRuleSet)); in format()
1172 return toAppendTo; in format()
1189 StringBuffer toAppendTo, in format() argument
1194 if (toAppendTo.length() == 0) { in format()
1195 toAppendTo.append(adjustForContext(format(number, defaultRuleSet))); in format()
1198 toAppendTo.append(format(number, defaultRuleSet)); in format()
1200 return toAppendTo; in format()
[all …]
DNumberFormat.java257 StringBuffer toAppendTo, in format() argument
262 return format(((Long)number).longValue(), toAppendTo, pos); in format()
264 return format((BigInteger) number, toAppendTo, pos); in format()
266 return format((java.math.BigDecimal) number, toAppendTo, pos); in format()
268 return format((android.icu.math.BigDecimal) number, toAppendTo, pos); in format()
270 return format((CurrencyAmount)number, toAppendTo, pos); in format()
272 return format(((Number)number).doubleValue(), toAppendTo, pos); in format()
348 StringBuffer toAppendTo, in format() argument
356 StringBuffer toAppendTo, in format() argument
363 StringBuffer toAppendTo, in format() argument
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DISO8601DateFormat.java28 public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { in format() argument
29 toAppendTo.append(ISO8601Utils.format(date)); in format()
30 return toAppendTo; in format()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRuleBasedNumberFormat.java1184 StringBuffer toAppendTo, in format() argument
1190 if (toAppendTo.length() == 0) { in format()
1191 toAppendTo.append(adjustForContext(format(number, defaultRuleSet))); in format()
1194 toAppendTo.append(format(number, defaultRuleSet)); in format()
1196 return toAppendTo; in format()
1214 StringBuffer toAppendTo, in format() argument
1219 if (toAppendTo.length() == 0) { in format()
1220 toAppendTo.append(adjustForContext(format(number, defaultRuleSet))); in format()
1223 toAppendTo.append(format(number, defaultRuleSet)); in format()
1225 return toAppendTo; in format()
[all …]
DNumberFormat.java270 StringBuffer toAppendTo, in format() argument
275 return format(((Long)number).longValue(), toAppendTo, pos); in format()
277 return format((BigInteger) number, toAppendTo, pos); in format()
279 return format((java.math.BigDecimal) number, toAppendTo, pos); in format()
281 return format((com.ibm.icu.math.BigDecimal) number, toAppendTo, pos); in format()
283 return format((CurrencyAmount)number, toAppendTo, pos); in format()
285 return format(((Number)number).doubleValue(), toAppendTo, pos); in format()
369 StringBuffer toAppendTo, in format() argument
378 StringBuffer toAppendTo, in format() argument
386 StringBuffer toAppendTo, in format() argument
[all …]

123