Home
last modified time | relevance | path

Searched refs:NumberStringBuilder (Results 1 – 25 of 64) sorted by relevance

123

/external/icu/icu4c/source/i18n/
Dnumber_stringbuilder.cpp35 NumberStringBuilder::NumberStringBuilder() = default;
37 NumberStringBuilder::~NumberStringBuilder() { in ~NumberStringBuilder()
44 NumberStringBuilder::NumberStringBuilder(const NumberStringBuilder &other) { in NumberStringBuilder() function in NumberStringBuilder
48 NumberStringBuilder &NumberStringBuilder::operator=(const NumberStringBuilder &other) { in operator =()
71 *this = NumberStringBuilder(); // can't fail in operator =()
90 int32_t NumberStringBuilder::length() const { in length()
94 int32_t NumberStringBuilder::codePointCount() const { in codePointCount()
98 UChar32 NumberStringBuilder::getFirstCodePoint() const { in getFirstCodePoint()
107 UChar32 NumberStringBuilder::getLastCodePoint() const { in getLastCodePoint()
118 UChar32 NumberStringBuilder::codePointAt(int32_t index) const { in codePointAt()
[all …]
Dnumber_modifiers.h31 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
67 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
103 …formatAsPrefixSuffix(NumberStringBuilder& result, int32_t startIndex, int32_t endIndex, Field fiel…
118 formatTwoArgPattern(const SimpleFormatter& compiled, NumberStringBuilder& result,
139 const NumberStringBuilder &prefix, in ConstantMultiFieldModifier()
140 const NumberStringBuilder &suffix, in ConstantMultiFieldModifier()
151 const NumberStringBuilder &prefix, in ConstantMultiFieldModifier()
152 const NumberStringBuilder &suffix, in ConstantMultiFieldModifier()
160 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
178 NumberStringBuilder fPrefix;
[all …]
Dnumber_stringbuilder.h22 class U_I18N_API NumberStringBuilder : public UMemory {
36 NumberStringBuilder();
38 ~NumberStringBuilder();
40 NumberStringBuilder(const NumberStringBuilder &other);
42 NumberStringBuilder &operator=(const NumberStringBuilder &other);
68 NumberStringBuilder &clear();
84 int32_t append(const NumberStringBuilder &other, UErrorCode &status);
86 int32_t insert(int32_t index, const NumberStringBuilder &other, UErrorCode &status);
103 bool contentEquals(const NumberStringBuilder &other) const;
Dnumber_formatimpl.h38 formatStatic(const MacroProps &macros, DecimalQuantity &inValue, NumberStringBuilder &outString,
48 … StandardPlural::Form plural, NumberStringBuilder& outString,
54 …int32_t format(DecimalQuantity& inValue, NumberStringBuilder& outString, UErrorCode& status) const;
64 …int32_t getPrefixSuffix(int8_t signum, StandardPlural::Form plural, NumberStringBuilder& outString,
72 NumberStringBuilder& string, int32_t index, UErrorCode& status);
77 … static int32_t writeAffixes(const MicroProps& micros, NumberStringBuilder& string, int32_t start,
109 NumberStringBuilder& outString, UErrorCode& status);
135 …writeIntegerDigits(const MicroProps &micros, DecimalQuantity &quantity, NumberStringBuilder &strin…
139 …writeFractionDigits(const MicroProps &micros, DecimalQuantity &quantity, NumberStringBuilder &stri…
Dnumber_modifiers.cpp72 int32_t ConstantAffixModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply()
158 int32_t SimpleModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply()
208 SimpleModifier::formatAsPrefixSuffix(NumberStringBuilder &result, int32_t startIndex, int32_t endIn… in formatAsPrefixSuffix()
232 SimpleModifier::formatTwoArgPattern(const SimpleFormatter& compiled, NumberStringBuilder& result, in formatTwoArgPattern()
289 int32_t ConstantMultiFieldModifier::apply(NumberStringBuilder &output, int leftIndex, int rightInde… in apply()
338 CurrencySpacingEnabledModifier::CurrencySpacingEnabledModifier(const NumberStringBuilder &prefix, in CurrencySpacingEnabledModifier()
339 const NumberStringBuilder &suffix, in CurrencySpacingEnabledModifier()
379 int32_t CurrencySpacingEnabledModifier::apply(NumberStringBuilder &output, int leftIndex, int right… in apply()
400 CurrencySpacingEnabledModifier::applyCurrencySpacing(NumberStringBuilder &output, int32_t prefixSta… in applyCurrencySpacing()
419 CurrencySpacingEnabledModifier::applyCurrencySpacingAffix(NumberStringBuilder &output, int32_t inde… in applyCurrencySpacingAffix()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberStringBuilderTest.java15 import com.ibm.icu.impl.number.NumberStringBuilder;
33 NumberStringBuilder sb2 = new NumberStringBuilder(); in testInsertAppendCharSequence()
35 NumberStringBuilder sb3 = new NumberStringBuilder(); in testInsertAppendCharSequence()
43 NumberStringBuilder sb5 = new NumberStringBuilder(); in testInsertAppendCharSequence()
66 sb5.append(new NumberStringBuilder(sb5)); in testInsertAppendCharSequence()
85 NumberStringBuilder sb2 = new NumberStringBuilder(); in testSplice()
120 NumberStringBuilder sb2 = new NumberStringBuilder(); in testInsertAppendCodePoint()
122 NumberStringBuilder sb3 = new NumberStringBuilder(); in testInsertAppendCodePoint()
130 NumberStringBuilder sb5 = new NumberStringBuilder(); in testInsertAppendCodePoint()
143 NumberStringBuilder sb1 = new NumberStringBuilder(); in testCopy()
[all …]
DModifierTest.java15 import com.ibm.icu.impl.number.NumberStringBuilder;
32 NumberStringBuilder prefix = new NumberStringBuilder(); in testConstantMultiFieldModifier()
33 NumberStringBuilder suffix = new NumberStringBuilder(); in testConstantMultiFieldModifier()
79 NumberStringBuilder output = new NumberStringBuilder(); in testSimpleModifier()
92 NumberStringBuilder prefix = new NumberStringBuilder(); in testCurrencySpacingEnabledModifier()
93 NumberStringBuilder suffix = new NumberStringBuilder(); in testCurrencySpacingEnabledModifier()
102 NumberStringBuilder sb = new NumberStringBuilder(); in testCurrencySpacingEnabledModifier()
104 NumberStringBuilder sb1 = new NumberStringBuilder(sb); in testCurrencySpacingEnabledModifier()
108 NumberStringBuilder sb2 = new NumberStringBuilder(sb); in testCurrencySpacingEnabledModifier()
150 NumberStringBuilder sb = new NumberStringBuilder(); in assertModifierEquals()
[all …]
DMutablePatternModifierTest.java15 import com.ibm.icu.impl.number.NumberStringBuilder;
84 NumberStringBuilder nsb1 = new NumberStringBuilder(); in mutableEqualsImmutable()
90 NumberStringBuilder nsb2 = new NumberStringBuilder(); in mutableEqualsImmutable()
95 NumberStringBuilder nsb3 = new NumberStringBuilder(); in mutableEqualsImmutable()
118 NumberStringBuilder nsb = new NumberStringBuilder(); in patternWithNoPlaceholder()
133 NumberStringBuilder nsb = new NumberStringBuilder(); in getPrefix()
139 NumberStringBuilder nsb = new NumberStringBuilder(); in getSuffix()
DAffixUtilsTest.java12 import com.ibm.icu.impl.number.NumberStringBuilder;
202 NumberStringBuilder sb = new NumberStringBuilder(); in testUnescapeWithSymbolProvider()
239 NumberStringBuilder nsb = new NumberStringBuilder(); in unescapeWithDefaults()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberStringBuilderTest.java16 import android.icu.impl.number.NumberStringBuilder;
36 NumberStringBuilder sb2 = new NumberStringBuilder(); in testInsertAppendCharSequence()
38 NumberStringBuilder sb3 = new NumberStringBuilder(); in testInsertAppendCharSequence()
46 NumberStringBuilder sb5 = new NumberStringBuilder(); in testInsertAppendCharSequence()
69 sb5.append(new NumberStringBuilder(sb5)); in testInsertAppendCharSequence()
88 NumberStringBuilder sb2 = new NumberStringBuilder(); in testSplice()
123 NumberStringBuilder sb2 = new NumberStringBuilder(); in testInsertAppendCodePoint()
125 NumberStringBuilder sb3 = new NumberStringBuilder(); in testInsertAppendCodePoint()
133 NumberStringBuilder sb5 = new NumberStringBuilder(); in testInsertAppendCodePoint()
146 NumberStringBuilder sb1 = new NumberStringBuilder(); in testCopy()
[all …]
DModifierTest.java16 import android.icu.impl.number.NumberStringBuilder;
35 NumberStringBuilder prefix = new NumberStringBuilder(); in testConstantMultiFieldModifier()
36 NumberStringBuilder suffix = new NumberStringBuilder(); in testConstantMultiFieldModifier()
82 NumberStringBuilder output = new NumberStringBuilder(); in testSimpleModifier()
95 NumberStringBuilder prefix = new NumberStringBuilder(); in testCurrencySpacingEnabledModifier()
96 NumberStringBuilder suffix = new NumberStringBuilder(); in testCurrencySpacingEnabledModifier()
105 NumberStringBuilder sb = new NumberStringBuilder(); in testCurrencySpacingEnabledModifier()
107 NumberStringBuilder sb1 = new NumberStringBuilder(sb); in testCurrencySpacingEnabledModifier()
111 NumberStringBuilder sb2 = new NumberStringBuilder(sb); in testCurrencySpacingEnabledModifier()
153 NumberStringBuilder sb = new NumberStringBuilder(); in assertModifierEquals()
[all …]
DMutablePatternModifierTest.java16 import android.icu.impl.number.NumberStringBuilder;
87 NumberStringBuilder nsb1 = new NumberStringBuilder(); in mutableEqualsImmutable()
93 NumberStringBuilder nsb2 = new NumberStringBuilder(); in mutableEqualsImmutable()
98 NumberStringBuilder nsb3 = new NumberStringBuilder(); in mutableEqualsImmutable()
121 NumberStringBuilder nsb = new NumberStringBuilder(); in patternWithNoPlaceholder()
136 NumberStringBuilder nsb = new NumberStringBuilder(); in getPrefix()
142 NumberStringBuilder nsb = new NumberStringBuilder(); in getSuffix()
DAffixUtilsTest.java13 import android.icu.impl.number.NumberStringBuilder;
205 NumberStringBuilder sb = new NumberStringBuilder(); in testUnescapeWithSymbolProvider()
242 NumberStringBuilder nsb = new NumberStringBuilder(); in unescapeWithDefaults()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_stringbuilder.cpp38 NumberStringBuilder sb2; in testInsertAppendUnicodeString()
42 NumberStringBuilder sb3; in testInsertAppendUnicodeString()
53 NumberStringBuilder sb5; in testInsertAppendUnicodeString()
71 NumberStringBuilder sb5cp(sb5); in testInsertAppendUnicodeString()
97 NumberStringBuilder sb2; in testSplice()
133 NumberStringBuilder sb2; in testInsertAppendCodePoint()
135 NumberStringBuilder sb3; in testInsertAppendCodePoint()
150 NumberStringBuilder sb5; in testInsertAppendCodePoint()
164 NumberStringBuilder sb1; in testCopy()
167 NumberStringBuilder sb2(sb1); in testCopy()
[all …]
Dnumbertest_modifiers.cpp39 NumberStringBuilder prefix; in testConstantMultiFieldModifier()
40 NumberStringBuilder suffix; in testConstantMultiFieldModifier()
90 NumberStringBuilder output; in testSimpleModifier()
108 NumberStringBuilder prefix; in testCurrencySpacingEnabledModifier()
109 NumberStringBuilder suffix; in testCurrencySpacingEnabledModifier()
123 NumberStringBuilder sb; in testCurrencySpacingEnabledModifier()
126 NumberStringBuilder sb1(sb); in testCurrencySpacingEnabledModifier()
131 NumberStringBuilder sb2(sb); in testCurrencySpacingEnabledModifier()
152 NumberStringBuilder sb; in assertModifierEquals()
159 void ModifiersTest::assertModifierEquals(const Modifier &mod, NumberStringBuilder &sb, in assertModifierEquals()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DConstantMultiFieldModifier.java29 NumberStringBuilder prefix, in ConstantMultiFieldModifier()
30 NumberStringBuilder suffix, in ConstantMultiFieldModifier()
37 NumberStringBuilder prefix, in ConstantMultiFieldModifier()
38 NumberStringBuilder suffix, in ConstantMultiFieldModifier()
52 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply()
113 NumberStringBuilder temp = new NumberStringBuilder(); in toString()
DNumberStringBuilder.java25 public class NumberStringBuilder implements CharSequence { class
28 public static final NumberStringBuilder EMPTY = new NumberStringBuilder();
35 public NumberStringBuilder() { in NumberStringBuilder() method in NumberStringBuilder
39 public NumberStringBuilder(int capacity) { in NumberStringBuilder() method in NumberStringBuilder
46 public NumberStringBuilder(NumberStringBuilder source) { in NumberStringBuilder() method in NumberStringBuilder
50 public void copyFrom(NumberStringBuilder source) { in copyFrom()
101 public NumberStringBuilder clear() {
241 public int append(NumberStringBuilder other) {
250 public int insert(int index, NumberStringBuilder other) {
370 NumberStringBuilder other = new NumberStringBuilder(this);
[all …]
DMutablePatternModifier.java165 NumberStringBuilder a = new NumberStringBuilder(); in createImmutableAndChain()
166 NumberStringBuilder b = new NumberStringBuilder(); in createImmutableAndChain()
205 NumberStringBuilder a, in createConstantModifier()
206 NumberStringBuilder b) { in createConstantModifier()
283 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply()
344 private int insertPrefix(NumberStringBuilder sb, int position) { in insertPrefix()
350 private int insertSuffix(NumberStringBuilder sb, int position) { in insertSuffix()
DCurrencySpacingEnabledModifier.java31 NumberStringBuilder prefix, in CurrencySpacingEnabledModifier()
32 NumberStringBuilder suffix, in CurrencySpacingEnabledModifier()
74 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply()
97 NumberStringBuilder output, in applyCurrencySpacing()
118 NumberStringBuilder output, in applyCurrencySpacingAffix()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DConstantMultiFieldModifier.java31 NumberStringBuilder prefix, in ConstantMultiFieldModifier()
32 NumberStringBuilder suffix, in ConstantMultiFieldModifier()
39 NumberStringBuilder prefix, in ConstantMultiFieldModifier()
40 NumberStringBuilder suffix, in ConstantMultiFieldModifier()
54 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply()
115 NumberStringBuilder temp = new NumberStringBuilder(); in toString()
DNumberStringBuilder.java27 public class NumberStringBuilder implements CharSequence { class
30 public static final NumberStringBuilder EMPTY = new NumberStringBuilder();
37 public NumberStringBuilder() { in NumberStringBuilder() method in NumberStringBuilder
41 public NumberStringBuilder(int capacity) { in NumberStringBuilder() method in NumberStringBuilder
48 public NumberStringBuilder(NumberStringBuilder source) { in NumberStringBuilder() method in NumberStringBuilder
52 public void copyFrom(NumberStringBuilder source) { in copyFrom()
103 public NumberStringBuilder clear() {
243 public int append(NumberStringBuilder other) {
252 public int insert(int index, NumberStringBuilder other) {
372 NumberStringBuilder other = new NumberStringBuilder(this);
[all …]
DMutablePatternModifier.java167 NumberStringBuilder a = new NumberStringBuilder(); in createImmutableAndChain()
168 NumberStringBuilder b = new NumberStringBuilder(); in createImmutableAndChain()
207 NumberStringBuilder a, in createConstantModifier()
208 NumberStringBuilder b) { in createConstantModifier()
288 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply()
349 private int insertPrefix(NumberStringBuilder sb, int position) { in insertPrefix()
355 private int insertSuffix(NumberStringBuilder sb, int position) { in insertSuffix()
DCurrencySpacingEnabledModifier.java33 NumberStringBuilder prefix, in CurrencySpacingEnabledModifier()
34 NumberStringBuilder suffix, in CurrencySpacingEnabledModifier()
76 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply()
99 NumberStringBuilder output, in applyCurrencySpacing()
120 NumberStringBuilder output, in applyCurrencySpacingAffix()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DLocalizedNumberFormatter.java15 import com.ibm.icu.impl.number.NumberStringBuilder;
153 NumberStringBuilder string = new NumberStringBuilder(); in format()
169 NumberStringBuilder string = new NumberStringBuilder(); in getAffixImpl()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DLocalizedNumberFormatter.java16 import android.icu.impl.number.NumberStringBuilder;
149 NumberStringBuilder string = new NumberStringBuilder(); in format()
165 NumberStringBuilder string = new NumberStringBuilder(); in getAffixImpl()

123