Home
last modified time | relevance | path

Searched refs:fieldAt (Results 1 – 10 of 10) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DCurrencySpacingEnabledModifier.java40 … if (prefix.length() > 0 && prefix.fieldAt(prefix.length() - 1) == NumberFormat.Field.CURRENCY) { in CurrencySpacingEnabledModifier()
55 if (suffix.length() > 0 && suffix.fieldAt(0) == NumberFormat.Field.CURRENCY) { in CurrencySpacingEnabledModifier()
125 NumberFormat.Field affixField = (affix == PREFIX) ? output.fieldAt(index - 1) in applyCurrencySpacingAffix()
126 : output.fieldAt(index); in applyCurrencySpacingAffix()
DNumberStringBuilder.java73 public Field fieldAt(int index) {
262 this.fields[position + i] = other.fieldAt(i);
467 if (charAt(i) != other.charAt(i) || fieldAt(i) != other.fieldAt(i)) {
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DCurrencySpacingEnabledModifier.java42 … if (prefix.length() > 0 && prefix.fieldAt(prefix.length() - 1) == NumberFormat.Field.CURRENCY) { in CurrencySpacingEnabledModifier()
57 if (suffix.length() > 0 && suffix.fieldAt(0) == NumberFormat.Field.CURRENCY) { in CurrencySpacingEnabledModifier()
127 NumberFormat.Field affixField = (affix == PREFIX) ? output.fieldAt(index - 1) in applyCurrencySpacingAffix()
128 : output.fieldAt(index); in applyCurrencySpacingAffix()
DNumberStringBuilder.java75 public Field fieldAt(int index) {
264 this.fields[position + i] = other.fieldAt(i);
469 if (charAt(i) != other.charAt(i) || fieldAt(i) != other.fieldAt(i)) {
/external/icu/icu4c/source/i18n/
Dnumber_stringbuilder.cpp238 getFieldPtr()[position + i] = other.fieldAt(i); in insert()
353 if (fieldAt(i) == UNUM_FIELD_COUNT) { in toDebugString()
357 switch (fieldAt(i)) { in toDebugString()
411 if (charAt(i) != other.charAt(i) || fieldAt(i) != other.fieldAt(i)) { in contentEquals()
471 Field field = fieldAt(i); in getAllFieldPositions()
493 if (field == fieldAt(i)) { in containsField()
Dnumber_modifiers.cpp347 if (prefix.length() > 0 && prefix.fieldAt(prefix.length() - 1) == UNUM_CURRENCY_FIELD) { in CurrencySpacingEnabledModifier()
362 if (suffix.length() > 0 && suffix.fieldAt(0) == UNUM_CURRENCY_FIELD) { in CurrencySpacingEnabledModifier()
426 Field affixField = (affix == PREFIX) ? output.fieldAt(index - 1) : output.fieldAt(index); in applyCurrencySpacingAffix()
Dnumber_stringbuilder.h54 inline Field fieldAt(int32_t index) const { in fieldAt() function
/external/icu/icu4c/source/test/intltest/
Dnumbertest_stringbuilder.cpp187 assertEquals("Null field first", UNUM_FIELD_COUNT, sb.fieldAt(i)); in testFields()
188 … assertEquals("Currency field second", UNUM_CURRENCY_FIELD, sb.fieldAt(i + str.length())); in testFields()
203 assertEquals("Integer field", UNUM_INTEGER_FIELD, sb.fieldAt(2)); in testFields()
213 UNumberFormatFields field = sb.fieldAt(i); in testFields()
214 … assertEquals("Field should equal location in old", old.fieldAt(i % old.length()), field); in testFields()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberStringBuilderTest.java165 assertEquals(null, sb.fieldAt(i)); in testFields()
167 assertEquals(NumberFormat.Field.CURRENCY, sb.fieldAt(i + str.length())); in testFields()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberStringBuilderTest.java168 assertEquals(null, sb.fieldAt(i)); in testFields()
170 assertEquals(NumberFormat.Field.CURRENCY, sb.fieldAt(i + str.length())); in testFields()