Home
last modified time | relevance | path

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

123456

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DFormattedStringBuilderTest.java15 import ohos.global.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 …]
/third_party/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 …]
/third_party/skia/third_party/externals/icu/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…
/third_party/icu/icu4c/source/i18n/
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;
222 std::is_standard_layout<FormattedStringBuilder::Field>::value &&
[all …]
Dformatted_string_builder.cpp37 FormattedStringBuilder::FormattedStringBuilder() { in FormattedStringBuilder() function in FormattedStringBuilder
47 FormattedStringBuilder::~FormattedStringBuilder() { in ~FormattedStringBuilder()
54 FormattedStringBuilder::FormattedStringBuilder(const FormattedStringBuilder &other) { in FormattedStringBuilder() function in FormattedStringBuilder
58 FormattedStringBuilder &FormattedStringBuilder::operator=(const FormattedStringBuilder &other) { in operator =()
81 *this = FormattedStringBuilder(); // can't fail in operator =()
100 int32_t FormattedStringBuilder::length() const { in length()
104 int32_t FormattedStringBuilder::codePointCount() const { in codePointCount()
108 UChar32 FormattedStringBuilder::getFirstCodePoint() const { in getFirstCodePoint()
117 UChar32 FormattedStringBuilder::getLastCodePoint() const { in getLastCodePoint()
128 UChar32 FormattedStringBuilder::codePointAt(int32_t index) const { in codePointAt()
[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.h55 … StandardPlural::Form plural, FormattedStringBuilder& outString,
71 …int32_t getPrefixSuffix(Signum signum, StandardPlural::Form plural, FormattedStringBuilder& outStr…
83 FormattedStringBuilder& string, int32_t index, UErrorCode& status);
88 …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…
/third_party/node/deps/icu-small/source/i18n/
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;
222 std::is_standard_layout<FormattedStringBuilder::Field>::value &&
[all …]
Dformatted_string_builder.cpp37 FormattedStringBuilder::FormattedStringBuilder() { in FormattedStringBuilder() function in FormattedStringBuilder
47 FormattedStringBuilder::~FormattedStringBuilder() { in ~FormattedStringBuilder()
54 FormattedStringBuilder::FormattedStringBuilder(const FormattedStringBuilder &other) { in FormattedStringBuilder() function in FormattedStringBuilder
58 FormattedStringBuilder &FormattedStringBuilder::operator=(const FormattedStringBuilder &other) { in operator =()
81 *this = FormattedStringBuilder(); // can't fail in operator =()
100 int32_t FormattedStringBuilder::length() const { in length()
104 int32_t FormattedStringBuilder::codePointCount() const { in codePointCount()
108 UChar32 FormattedStringBuilder::getFirstCodePoint() const { in getFirstCodePoint()
117 UChar32 FormattedStringBuilder::getLastCodePoint() const { in getLastCodePoint()
128 UChar32 FormattedStringBuilder::codePointAt(int32_t index) const { in codePointAt()
[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.h55 … StandardPlural::Form plural, FormattedStringBuilder& outString,
71 …int32_t getPrefixSuffix(Signum signum, StandardPlural::Form plural, FormattedStringBuilder& outStr…
85 FormattedStringBuilder& string,
94 FormattedStringBuilder& string,
131 FormattedStringBuilder& outString, UErrorCode& status);
160 FormattedStringBuilder &string,
168 FormattedStringBuilder &string,
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DModifierTest.java11 import ohos.global.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 ohos.global.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()
/third_party/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;
96 FormattedStringBuilder nsb1 = new FormattedStringBuilder(); in mutableEqualsImmutable()
102 FormattedStringBuilder nsb2 = new FormattedStringBuilder(); in mutableEqualsImmutable()
107 FormattedStringBuilder nsb3 = new FormattedStringBuilder(); in mutableEqualsImmutable()
130 FormattedStringBuilder nsb = new FormattedStringBuilder(); in patternWithNoPlaceholder()
145 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getPrefix()
151 FormattedStringBuilder nsb = new FormattedStringBuilder(); in getSuffix()
/third_party/icu/icu4c/source/test/intltest/
Dformatted_string_builder_test.cpp30 void assertEqualsImpl(const UnicodeString &a, const FormattedStringBuilder &b);
61 FormattedStringBuilder sb2; in testInsertAppendUnicodeString()
65 FormattedStringBuilder sb3; in testInsertAppendUnicodeString()
75 FormattedStringBuilder sb5; in testInsertAppendUnicodeString()
93 FormattedStringBuilder sb5cp(sb5); in testInsertAppendUnicodeString()
119 FormattedStringBuilder sb2; in testSplice()
155 FormattedStringBuilder sb2; in testInsertAppendCodePoint()
157 FormattedStringBuilder sb3; in testInsertAppendCodePoint()
172 FormattedStringBuilder sb5; in testInsertAppendCodePoint()
182 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()
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DConstantMultiFieldModifier.java9 import ohos.global.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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DLocalizedNumberFormatter.java11 import ohos.global.icu.impl.FormattedStringBuilder;
98 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
120 FormattedStringBuilder string = new FormattedStringBuilder(); in format()
142 public void formatImpl(DecimalQuantity fq, FormattedStringBuilder string) { in formatImpl()
157 public void formatImpl(DecimalQuantity fq, MeasureUnit unit, FormattedStringBuilder string) { in formatImpl()
180 FormattedStringBuilder string = new FormattedStringBuilder(); in getAffixImpl()
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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 …]

123456