Home
last modified time | relevance | path

Searched refs:FormattedStringBuilder (Results 1 – 25 of 101) sorted by relevance

12345

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DFormattedStringBuilderTest.java15 import android.icu.impl.FormattedStringBuilder;
36 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
38 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
46 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
69 sb5.append(new FormattedStringBuilder(sb5)); in testInsertAppendCharSequence()
88 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testSplice()
123 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
125 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
133 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
142 FormattedStringBuilder sb7 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DFormattedStringBuilderTest.java14 import com.ibm.icu.impl.FormattedStringBuilder;
33 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
35 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
43 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
66 sb5.append(new FormattedStringBuilder(sb5)); in testInsertAppendCharSequence()
85 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testSplice()
120 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
122 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
130 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
139 FormattedStringBuilder sb7 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
[all …]
/external/icu/icu4c/source/i18n/
Dformatted_string_builder.cpp36 FormattedStringBuilder::FormattedStringBuilder() { in FormattedStringBuilder() function in FormattedStringBuilder
46 FormattedStringBuilder::~FormattedStringBuilder() { in ~FormattedStringBuilder()
53 FormattedStringBuilder::FormattedStringBuilder(const FormattedStringBuilder &other) { in FormattedStringBuilder() function in FormattedStringBuilder
57 FormattedStringBuilder &FormattedStringBuilder::operator=(const FormattedStringBuilder &other) { in operator =()
80 *this = FormattedStringBuilder(); // can't fail in operator =()
99 int32_t FormattedStringBuilder::length() const { in length()
103 int32_t FormattedStringBuilder::codePointCount() const { in codePointCount()
107 UChar32 FormattedStringBuilder::getFirstCodePoint() const { in getFirstCodePoint()
116 UChar32 FormattedStringBuilder::getLastCodePoint() const { in getLastCodePoint()
127 UChar32 FormattedStringBuilder::codePointAt(int32_t index) const { in codePointAt()
[all …]
Dformatted_string_builder.h35 class U_I18N_API FormattedStringBuilder : public UMemory {
49 FormattedStringBuilder();
51 ~FormattedStringBuilder();
53 FormattedStringBuilder(const FormattedStringBuilder &other);
73 FormattedStringBuilder &operator=(const FormattedStringBuilder &other);
99 FormattedStringBuilder &clear();
150 int32_t append(const FormattedStringBuilder &other, UErrorCode &status);
153 int32_t insert(int32_t index, const FormattedStringBuilder &other, UErrorCode &status);
180 bool contentEquals(const FormattedStringBuilder &other) const;
221 std::is_pod<FormattedStringBuilder::Field>::value,
[all …]
Dnumber_modifiers.h31 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
67 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
103 formatAsPrefixSuffix(FormattedStringBuilder& result, int32_t startIndex, int32_t endIndex,
118 formatTwoArgPattern(const SimpleFormatter& compiled, FormattedStringBuilder& result,
139 const FormattedStringBuilder &prefix, in ConstantMultiFieldModifier()
140 const FormattedStringBuilder &suffix, in ConstantMultiFieldModifier()
151 const FormattedStringBuilder &prefix, in ConstantMultiFieldModifier()
152 const FormattedStringBuilder &suffix, in ConstantMultiFieldModifier()
160 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
178 FormattedStringBuilder fPrefix;
[all …]
Dnumber_formatimpl.h49 … StandardPlural::Form plural, FormattedStringBuilder& outString,
65 …int32_t getPrefixSuffix(Signum signum, StandardPlural::Form plural, FormattedStringBuilder& outStr…
77 FormattedStringBuilder& string, int32_t index, UErrorCode& status);
82 …static int32_t writeAffixes(const MicroProps& micros, FormattedStringBuilder& string, int32_t star…
123 FormattedStringBuilder& outString, UErrorCode& status);
149 …writeIntegerDigits(const MicroProps &micros, DecimalQuantity &quantity, FormattedStringBuilder &st…
153 …writeFractionDigits(const MicroProps &micros, DecimalQuantity &quantity, FormattedStringBuilder &s…
Dformattedval_impl.h150 FormattedValueStringBuilderImpl(FormattedStringBuilder::Field numericField);
164 inline FormattedStringBuilder& getStringRef() { in getStringRef()
167 inline const FormattedStringBuilder& getStringRef() const { in getStringRef()
181 FormattedStringBuilder fString;
182 FormattedStringBuilder::Field fNumericField;
185 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,…
186 static bool isIntOrGroup(FormattedStringBuilder::Field field);
187 static bool isTrimmable(FormattedStringBuilder::Field field);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DModifierTest.java11 import android.icu.impl.FormattedStringBuilder;
35 FormattedStringBuilder prefix = new FormattedStringBuilder(); in testConstantMultiFieldModifier()
36 FormattedStringBuilder suffix = new FormattedStringBuilder(); in testConstantMultiFieldModifier()
82 FormattedStringBuilder output = new FormattedStringBuilder(); in testSimpleModifier()
95 FormattedStringBuilder prefix = new FormattedStringBuilder(); in testCurrencySpacingEnabledModifier()
96 FormattedStringBuilder suffix = new FormattedStringBuilder(); in testCurrencySpacingEnabledModifier()
105 FormattedStringBuilder sb = new FormattedStringBuilder(); in testCurrencySpacingEnabledModifier()
107 FormattedStringBuilder sb1 = new FormattedStringBuilder(sb); in testCurrencySpacingEnabledModifier()
111 FormattedStringBuilder sb2 = new FormattedStringBuilder(sb); in testCurrencySpacingEnabledModifier()
153 FormattedStringBuilder sb = new FormattedStringBuilder(); in assertModifierEquals()
[all …]
DMutablePatternModifierTest.java12 import android.icu.impl.FormattedStringBuilder;
94 FormattedStringBuilder nsb1 = new FormattedStringBuilder(); in mutableEqualsImmutable()
100 FormattedStringBuilder nsb2 = new FormattedStringBuilder(); in mutableEqualsImmutable()
105 FormattedStringBuilder nsb3 = new FormattedStringBuilder(); in mutableEqualsImmutable()
128 FormattedStringBuilder nsb = new FormattedStringBuilder(); in patternWithNoPlaceholder()
143 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getPrefix()
149 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getSuffix()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DModifierTest.java10 import com.ibm.icu.impl.FormattedStringBuilder;
32 FormattedStringBuilder prefix = new FormattedStringBuilder(); in testConstantMultiFieldModifier()
33 FormattedStringBuilder suffix = new FormattedStringBuilder(); in testConstantMultiFieldModifier()
79 FormattedStringBuilder output = new FormattedStringBuilder(); in testSimpleModifier()
92 FormattedStringBuilder prefix = new FormattedStringBuilder(); in testCurrencySpacingEnabledModifier()
93 FormattedStringBuilder suffix = new FormattedStringBuilder(); in testCurrencySpacingEnabledModifier()
102 FormattedStringBuilder sb = new FormattedStringBuilder(); in testCurrencySpacingEnabledModifier()
104 FormattedStringBuilder sb1 = new FormattedStringBuilder(sb); in testCurrencySpacingEnabledModifier()
108 FormattedStringBuilder sb2 = new FormattedStringBuilder(sb); in testCurrencySpacingEnabledModifier()
150 FormattedStringBuilder sb = new FormattedStringBuilder(); in assertModifierEquals()
[all …]
DMutablePatternModifierTest.java11 import com.ibm.icu.impl.FormattedStringBuilder;
91 FormattedStringBuilder nsb1 = new FormattedStringBuilder(); in mutableEqualsImmutable()
97 FormattedStringBuilder nsb2 = new FormattedStringBuilder(); in mutableEqualsImmutable()
102 FormattedStringBuilder nsb3 = new FormattedStringBuilder(); in mutableEqualsImmutable()
125 FormattedStringBuilder nsb = new FormattedStringBuilder(); in patternWithNoPlaceholder()
140 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getPrefix()
146 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getSuffix()
/external/icu/libicu/cts_headers/
Dformatted_string_builder.h35 class U_I18N_API FormattedStringBuilder : public UMemory {
49 FormattedStringBuilder();
51 ~FormattedStringBuilder();
53 FormattedStringBuilder(const FormattedStringBuilder &other);
73 FormattedStringBuilder &operator=(const FormattedStringBuilder &other);
99 FormattedStringBuilder &clear();
150 int32_t append(const FormattedStringBuilder &other, UErrorCode &status);
153 int32_t insert(int32_t index, const FormattedStringBuilder &other, UErrorCode &status);
180 bool contentEquals(const FormattedStringBuilder &other) const;
221 std::is_pod<FormattedStringBuilder::Field>::value,
[all …]
Dnumber_modifiers.h31 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
67 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
103 formatAsPrefixSuffix(FormattedStringBuilder& result, int32_t startIndex, int32_t endIndex,
118 formatTwoArgPattern(const SimpleFormatter& compiled, FormattedStringBuilder& result,
139 const FormattedStringBuilder &prefix, in ConstantMultiFieldModifier()
140 const FormattedStringBuilder &suffix, in ConstantMultiFieldModifier()
151 const FormattedStringBuilder &prefix, in ConstantMultiFieldModifier()
152 const FormattedStringBuilder &suffix, in ConstantMultiFieldModifier()
160 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
178 FormattedStringBuilder fPrefix;
[all …]
Dnumber_formatimpl.h49 … StandardPlural::Form plural, FormattedStringBuilder& outString,
65 …int32_t getPrefixSuffix(Signum signum, StandardPlural::Form plural, FormattedStringBuilder& outStr…
77 FormattedStringBuilder& string, int32_t index, UErrorCode& status);
82 …static int32_t writeAffixes(const MicroProps& micros, FormattedStringBuilder& string, int32_t star…
123 FormattedStringBuilder& outString, UErrorCode& status);
149 …writeIntegerDigits(const MicroProps &micros, DecimalQuantity &quantity, FormattedStringBuilder &st…
153 …writeFractionDigits(const MicroProps &micros, DecimalQuantity &quantity, FormattedStringBuilder &s…
Dformattedval_impl.h150 FormattedValueStringBuilderImpl(FormattedStringBuilder::Field numericField);
164 inline FormattedStringBuilder& getStringRef() { in getStringRef()
167 inline const FormattedStringBuilder& getStringRef() const { in getStringRef()
181 FormattedStringBuilder fString;
182 FormattedStringBuilder::Field fNumericField;
185 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,…
186 static bool isIntOrGroup(FormattedStringBuilder::Field field);
187 static bool isTrimmable(FormattedStringBuilder::Field field);
/external/icu/icu4c/source/test/intltest/
Dformatted_string_builder_test.cpp29 void assertEqualsImpl(const UnicodeString &a, const FormattedStringBuilder &b);
59 FormattedStringBuilder sb2; in testInsertAppendUnicodeString()
63 FormattedStringBuilder sb3; in testInsertAppendUnicodeString()
73 FormattedStringBuilder sb5; in testInsertAppendUnicodeString()
91 FormattedStringBuilder sb5cp(sb5); in testInsertAppendUnicodeString()
117 FormattedStringBuilder sb2; in testSplice()
153 FormattedStringBuilder sb2; in testInsertAppendCodePoint()
155 FormattedStringBuilder sb3; in testInsertAppendCodePoint()
170 FormattedStringBuilder sb5; in testInsertAppendCodePoint()
180 FormattedStringBuilder sb7; in testInsertAppendCodePoint()
[all …]
Dnumbertest_modifiers.cpp39 FormattedStringBuilder prefix; in testConstantMultiFieldModifier()
40 FormattedStringBuilder suffix; in testConstantMultiFieldModifier()
90 FormattedStringBuilder output; in testSimpleModifier()
108 FormattedStringBuilder prefix; in testCurrencySpacingEnabledModifier()
109 FormattedStringBuilder suffix; in testCurrencySpacingEnabledModifier()
123 FormattedStringBuilder sb; in testCurrencySpacingEnabledModifier()
126 FormattedStringBuilder sb1(sb); in testCurrencySpacingEnabledModifier()
131 FormattedStringBuilder sb2(sb); in testCurrencySpacingEnabledModifier()
152 FormattedStringBuilder sb; in assertModifierEquals()
159 void ModifiersTest::assertModifierEquals(const Modifier &mod, FormattedStringBuilder &sb, in assertModifierEquals()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DConstantMultiFieldModifier.java9 import android.icu.impl.FormattedStringBuilder;
32 FormattedStringBuilder prefix, in ConstantMultiFieldModifier()
33 FormattedStringBuilder suffix, in ConstantMultiFieldModifier()
40 FormattedStringBuilder prefix, in ConstantMultiFieldModifier()
41 FormattedStringBuilder suffix, in ConstantMultiFieldModifier()
55 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
116 FormattedStringBuilder temp = new FormattedStringBuilder(); in toString()
DMutablePatternModifier.java6 import android.icu.impl.FormattedStringBuilder;
160 FormattedStringBuilder a = new FormattedStringBuilder(); in createImmutable()
161 FormattedStringBuilder b = new FormattedStringBuilder(); in createImmutable()
204 FormattedStringBuilder a, in createConstantModifier()
205 FormattedStringBuilder b) { in createConstantModifier()
296 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
357 private int insertPrefix(FormattedStringBuilder sb, int position) { in insertPrefix()
363 private int insertSuffix(FormattedStringBuilder sb, int position) { in insertSuffix()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DConstantMultiFieldModifier.java8 import com.ibm.icu.impl.FormattedStringBuilder;
30 FormattedStringBuilder prefix, in ConstantMultiFieldModifier()
31 FormattedStringBuilder suffix, in ConstantMultiFieldModifier()
38 FormattedStringBuilder prefix, in ConstantMultiFieldModifier()
39 FormattedStringBuilder suffix, in ConstantMultiFieldModifier()
53 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
114 FormattedStringBuilder temp = new FormattedStringBuilder(); in toString()
DMutablePatternModifier.java5 import com.ibm.icu.impl.FormattedStringBuilder;
158 FormattedStringBuilder a = new FormattedStringBuilder(); in createImmutable()
159 FormattedStringBuilder b = new FormattedStringBuilder(); in createImmutable()
202 FormattedStringBuilder a, in createConstantModifier()
203 FormattedStringBuilder b) { in createConstantModifier()
291 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
352 private int insertPrefix(FormattedStringBuilder sb, int position) { in insertPrefix()
358 private int insertSuffix(FormattedStringBuilder sb, int position) { in insertSuffix()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DLocalizedNumberFormatter.java11 import android.icu.impl.FormattedStringBuilder;
99 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
123 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
145 public MicroProps formatImpl(DecimalQuantity fq, FormattedStringBuilder string) { in formatImpl()
159 …public MicroProps formatImpl(DecimalQuantity fq, MeasureUnit unit, FormattedStringBuilder string) { in formatImpl()
182 FormattedStringBuilder string = new FormattedStringBuilder(); in getAffixImpl()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DLocalizedNumberFormatter.java10 import com.ibm.icu.impl.FormattedStringBuilder;
103 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
128 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
150 public MicroProps formatImpl(DecimalQuantity fq, FormattedStringBuilder string) { in formatImpl()
164 …public MicroProps formatImpl(DecimalQuantity fq, MeasureUnit unit, FormattedStringBuilder string) { in formatImpl()
187 FormattedStringBuilder string = new FormattedStringBuilder(); in getAffixImpl()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DFormattedStringBuilder.java28 public class FormattedStringBuilder implements CharSequence, Appendable { class
31 public static final FormattedStringBuilder EMPTY = new FormattedStringBuilder();
44 public FormattedStringBuilder() { in FormattedStringBuilder() method in FormattedStringBuilder
48 public FormattedStringBuilder(int capacity) { in FormattedStringBuilder() method in FormattedStringBuilder
55 public FormattedStringBuilder(FormattedStringBuilder source) { in FormattedStringBuilder() method in FormattedStringBuilder
59 public void copyFrom(FormattedStringBuilder source) { in copyFrom()
110 public FormattedStringBuilder clear() {
271 public int append(FormattedStringBuilder other) {
280 public int insert(int index, FormattedStringBuilder other) {
405 FormattedStringBuilder other = new FormattedStringBuilder(this);
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedStringBuilder.java26 public class FormattedStringBuilder implements CharSequence, Appendable { class
29 public static final FormattedStringBuilder EMPTY = new FormattedStringBuilder();
42 public FormattedStringBuilder() { in FormattedStringBuilder() method in FormattedStringBuilder
46 public FormattedStringBuilder(int capacity) { in FormattedStringBuilder() method in FormattedStringBuilder
53 public FormattedStringBuilder(FormattedStringBuilder source) { in FormattedStringBuilder() method in FormattedStringBuilder
57 public void copyFrom(FormattedStringBuilder source) { in copyFrom()
108 public FormattedStringBuilder clear() {
269 public int append(FormattedStringBuilder other) {
278 public int insert(int index, FormattedStringBuilder other) {
403 FormattedStringBuilder other = new FormattedStringBuilder(this);
[all …]

12345