Home
last modified time | relevance | path

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

1234

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DFormattedStringBuilderTest.java15 import com.ibm.icu.impl.FormattedStringBuilder;
34 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
36 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
44 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
67 sb5.append(new FormattedStringBuilder(sb5)); in testInsertAppendCharSequence()
86 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testSplice()
121 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
123 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
131 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
140 FormattedStringBuilder sb7 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DFormattedStringBuilderTest.java16 import android.icu.impl.FormattedStringBuilder;
37 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
39 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
47 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCharSequence()
70 sb5.append(new FormattedStringBuilder(sb5)); in testInsertAppendCharSequence()
89 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testSplice()
124 FormattedStringBuilder sb2 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
126 FormattedStringBuilder sb3 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
134 FormattedStringBuilder sb5 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
143 FormattedStringBuilder sb7 = new FormattedStringBuilder(); in testInsertAppendCodePoint()
[all …]
/external/icu/icu4c/source/i18n/
Dformatted_string_builder.cpp35 FormattedStringBuilder::FormattedStringBuilder() { in FormattedStringBuilder() function in FormattedStringBuilder
45 FormattedStringBuilder::~FormattedStringBuilder() { in ~FormattedStringBuilder()
52 FormattedStringBuilder::FormattedStringBuilder(const FormattedStringBuilder &other) { in FormattedStringBuilder() function in FormattedStringBuilder
56 FormattedStringBuilder &FormattedStringBuilder::operator=(const FormattedStringBuilder &other) { in operator =()
79 *this = FormattedStringBuilder(); // can't fail in operator =()
98 int32_t FormattedStringBuilder::length() const { in length()
102 int32_t FormattedStringBuilder::codePointCount() const { in codePointCount()
106 UChar32 FormattedStringBuilder::getFirstCodePoint() const { in getFirstCodePoint()
115 UChar32 FormattedStringBuilder::getLastCodePoint() const { in getLastCodePoint()
126 UChar32 FormattedStringBuilder::codePointAt(int32_t index) const { in codePointAt()
[all …]
Dformatted_string_builder.h34 class U_I18N_API FormattedStringBuilder : public UMemory {
48 FormattedStringBuilder();
50 ~FormattedStringBuilder();
52 FormattedStringBuilder(const FormattedStringBuilder &other);
60 FormattedStringBuilder &operator=(const FormattedStringBuilder &other);
86 FormattedStringBuilder &clear();
137 int32_t append(const FormattedStringBuilder &other, UErrorCode &status);
140 int32_t insert(int32_t index, const FormattedStringBuilder &other, UErrorCode &status);
167 bool contentEquals(const FormattedStringBuilder &other) const;
220 static constexpr FormattedStringBuilder::Field compress() { in compress()
[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.h38 …formatStatic(const MacroProps &macros, DecimalQuantity &inValue, FormattedStringBuilder &outString,
48 … StandardPlural::Form plural, FormattedStringBuilder& outString,
54 …int32_t format(DecimalQuantity& inValue, FormattedStringBuilder& outString, UErrorCode& status) co…
64 …int32_t getPrefixSuffix(Signum signum, StandardPlural::Form plural, FormattedStringBuilder& outStr…
76 FormattedStringBuilder& string, int32_t index, UErrorCode& status);
81 …static int32_t writeAffixes(const MicroProps& micros, FormattedStringBuilder& string, int32_t star…
113 FormattedStringBuilder& outString, UErrorCode& status);
139 …writeIntegerDigits(const MicroProps &micros, DecimalQuantity &quantity, FormattedStringBuilder &st…
143 …writeFractionDigits(const MicroProps &micros, DecimalQuantity &quantity, FormattedStringBuilder &s…
Dformattedval_impl.h129 FormattedValueStringBuilderImpl(FormattedStringBuilder::Field numericField);
143 inline FormattedStringBuilder& getStringRef() { in getStringRef()
146 inline const FormattedStringBuilder& getStringRef() const { in getStringRef()
151 FormattedStringBuilder fString;
152 FormattedStringBuilder::Field fNumericField;
154 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,…
155 static bool isIntOrGroup(FormattedStringBuilder::Field field);
156 static bool isNumericField(FormattedStringBuilder::Field field);
Dnumber_modifiers.cpp72 int32_t ConstantAffixModifier::apply(FormattedStringBuilder &output, int leftIndex, int rightIndex, in apply()
157 int32_t SimpleModifier::apply(FormattedStringBuilder &output, int leftIndex, int rightIndex, in apply()
206 SimpleModifier::formatAsPrefixSuffix(FormattedStringBuilder &result, int32_t startIndex, int32_t en… in formatAsPrefixSuffix()
230 SimpleModifier::formatTwoArgPattern(const SimpleFormatter& compiled, FormattedStringBuilder& result, in formatTwoArgPattern()
287 int32_t ConstantMultiFieldModifier::apply(FormattedStringBuilder &output, int leftIndex, int rightI… in apply()
336 CurrencySpacingEnabledModifier::CurrencySpacingEnabledModifier(const FormattedStringBuilder &prefix, in CurrencySpacingEnabledModifier()
337 const FormattedStringBuilder &suffix, in CurrencySpacingEnabledModifier()
377 int32_t CurrencySpacingEnabledModifier::apply(FormattedStringBuilder &output, int leftIndex, int ri… in apply()
398 CurrencySpacingEnabledModifier::applyCurrencySpacing(FormattedStringBuilder &output, int32_t prefix… in applyCurrencySpacing()
417 CurrencySpacingEnabledModifier::applyCurrencySpacingAffix(FormattedStringBuilder &output, int32_t i… in applyCurrencySpacingAffix()
/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;
87 FormattedStringBuilder nsb1 = new FormattedStringBuilder(); in mutableEqualsImmutable()
93 FormattedStringBuilder nsb2 = new FormattedStringBuilder(); in mutableEqualsImmutable()
98 FormattedStringBuilder nsb3 = new FormattedStringBuilder(); in mutableEqualsImmutable()
121 FormattedStringBuilder nsb = new FormattedStringBuilder(); in patternWithNoPlaceholder()
136 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getPrefix()
142 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getSuffix()
DAffixUtilsTest.java11 import android.icu.impl.FormattedStringBuilder;
205 FormattedStringBuilder sb = new FormattedStringBuilder(); in testUnescapeWithSymbolProvider()
242 FormattedStringBuilder nsb = new FormattedStringBuilder(); in unescapeWithDefaults()
/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;
84 FormattedStringBuilder nsb1 = new FormattedStringBuilder(); in mutableEqualsImmutable()
90 FormattedStringBuilder nsb2 = new FormattedStringBuilder(); in mutableEqualsImmutable()
95 FormattedStringBuilder nsb3 = new FormattedStringBuilder(); in mutableEqualsImmutable()
118 FormattedStringBuilder nsb = new FormattedStringBuilder(); in patternWithNoPlaceholder()
133 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getPrefix()
139 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getSuffix()
/external/icu/icu4c/source/test/intltest/
Dformatted_string_builder_test.cpp28 void assertEqualsImpl(const UnicodeString &a, const FormattedStringBuilder &b);
58 FormattedStringBuilder sb2; in testInsertAppendUnicodeString()
62 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;
173 FormattedStringBuilder a = new FormattedStringBuilder(); in createImmutableAndChain()
174 FormattedStringBuilder b = new FormattedStringBuilder(); in createImmutableAndChain()
213 FormattedStringBuilder a, in createConstantModifier()
214 FormattedStringBuilder b) { in createConstantModifier()
289 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
350 private int insertPrefix(FormattedStringBuilder sb, int position) { in insertPrefix()
356 private int insertSuffix(FormattedStringBuilder sb, int position) { in insertSuffix()
DCurrencySpacingEnabledModifier.java8 import android.icu.impl.FormattedStringBuilder;
36 FormattedStringBuilder prefix, in CurrencySpacingEnabledModifier()
37 FormattedStringBuilder suffix, in CurrencySpacingEnabledModifier()
79 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
102 FormattedStringBuilder output, in applyCurrencySpacing()
123 FormattedStringBuilder output, in applyCurrencySpacingAffix()
/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;
171 FormattedStringBuilder a = new FormattedStringBuilder(); in createImmutableAndChain()
172 FormattedStringBuilder b = new FormattedStringBuilder(); in createImmutableAndChain()
211 FormattedStringBuilder a, in createConstantModifier()
212 FormattedStringBuilder b) { in createConstantModifier()
284 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
345 private int insertPrefix(FormattedStringBuilder sb, int position) { in insertPrefix()
351 private int insertSuffix(FormattedStringBuilder sb, int position) { in insertSuffix()
DCurrencySpacingEnabledModifier.java7 import com.ibm.icu.impl.FormattedStringBuilder;
34 FormattedStringBuilder prefix, in CurrencySpacingEnabledModifier()
35 FormattedStringBuilder suffix, in CurrencySpacingEnabledModifier()
77 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply()
100 FormattedStringBuilder output, in applyCurrencySpacing()
121 FormattedStringBuilder output, in applyCurrencySpacingAffix()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DFormattedStringBuilder.java29 public class FormattedStringBuilder implements CharSequence { class
32 public static final FormattedStringBuilder EMPTY = new FormattedStringBuilder();
39 public FormattedStringBuilder() { in FormattedStringBuilder() method in FormattedStringBuilder
43 public FormattedStringBuilder(int capacity) { in FormattedStringBuilder() method in FormattedStringBuilder
50 public FormattedStringBuilder(FormattedStringBuilder source) { in FormattedStringBuilder() method in FormattedStringBuilder
54 public void copyFrom(FormattedStringBuilder source) { in copyFrom()
105 public FormattedStringBuilder clear() {
257 public int append(FormattedStringBuilder other) {
266 public int insert(int index, FormattedStringBuilder other) {
388 FormattedStringBuilder other = new FormattedStringBuilder(this);
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedStringBuilder.java27 public class FormattedStringBuilder implements CharSequence { class
30 public static final FormattedStringBuilder EMPTY = new FormattedStringBuilder();
37 public FormattedStringBuilder() { in FormattedStringBuilder() method in FormattedStringBuilder
41 public FormattedStringBuilder(int capacity) { in FormattedStringBuilder() method in FormattedStringBuilder
48 public FormattedStringBuilder(FormattedStringBuilder source) { in FormattedStringBuilder() method in FormattedStringBuilder
52 public void copyFrom(FormattedStringBuilder source) { in copyFrom()
103 public FormattedStringBuilder clear() {
255 public int append(FormattedStringBuilder other) {
264 public int insert(int index, FormattedStringBuilder other) {
386 FormattedStringBuilder other = new FormattedStringBuilder(this);
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/number/
DLocalizedNumberFormatter.java11 import android.icu.impl.FormattedStringBuilder;
129 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
151 public void formatImpl(DecimalQuantity fq, FormattedStringBuilder string) { in formatImpl()
166 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;
134 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
156 public void formatImpl(DecimalQuantity fq, FormattedStringBuilder string) { in formatImpl()
171 FormattedStringBuilder string = new FormattedStringBuilder(); in getAffixImpl()

1234