Home
last modified time | relevance | path

Searched refs:grouping2 (Results 1 – 25 of 39) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DGrouper.java57 short grouping2 = (short) properties.getSecondaryGroupingSize(); in forProperties() local
59 grouping1 = grouping1 > 0 ? grouping1 : grouping2 > 0 ? grouping2 : grouping1; in forProperties()
60 grouping2 = grouping2 > 0 ? grouping2 : grouping1; in forProperties()
61 return getInstance(grouping1, grouping2, minGrouping); in forProperties()
64 public static Grouper getInstance(short grouping1, short grouping2, short minGrouping) { in getInstance() argument
67 } else if (grouping1 == 3 && grouping2 == 3 && minGrouping == 1) { in getInstance()
69 } else if (grouping1 == 3 && grouping2 == 2 && minGrouping == 1) { in getInstance()
71 } else if (grouping1 == 3 && grouping2 == 3 && minGrouping == 2) { in getInstance()
73 } else if (grouping1 == 3 && grouping2 == 2 && minGrouping == 2) { in getInstance()
76 return new Grouper(grouping1, grouping2, minGrouping); in getInstance()
[all …]
DPatternStringUtils.java87 int grouping2 = Math.max(0, Math.min(properties.getSecondaryGroupingSize(), dosMax)); in propertiesToPatternString() local
111 grouping2 = 0; in propertiesToPatternString()
112 } else if (grouping1 == grouping2) { in propertiesToPatternString()
115 int groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
176 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
DPatternStringParser.java495 short grouping2 = (short) ((result.groupingSizes >>> 16) & 0xffff); in consumeIntegerFormat() local
497 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
500 if (grouping2 == 0 && grouping3 != -1) { in consumeIntegerFormat()
613 short grouping2 = (short) ((positive.groupingSizes >>> 16) & 0xffff); in patternInfoToProperties() local
615 if (grouping2 != -1) { in patternInfoToProperties()
623 properties.setSecondaryGroupingSize(grouping2); in patternInfoToProperties()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DGrouper.java55 short grouping2 = (short) properties.getSecondaryGroupingSize(); in forProperties() local
57 grouping1 = grouping1 > 0 ? grouping1 : grouping2 > 0 ? grouping2 : grouping1; in forProperties()
58 grouping2 = grouping2 > 0 ? grouping2 : grouping1; in forProperties()
59 return getInstance(grouping1, grouping2, minGrouping); in forProperties()
62 public static Grouper getInstance(short grouping1, short grouping2, short minGrouping) { in getInstance() argument
65 } else if (grouping1 == 3 && grouping2 == 3 && minGrouping == 1) { in getInstance()
67 } else if (grouping1 == 3 && grouping2 == 2 && minGrouping == 1) { in getInstance()
69 } else if (grouping1 == 3 && grouping2 == 3 && minGrouping == 2) { in getInstance()
71 } else if (grouping1 == 3 && grouping2 == 2 && minGrouping == 2) { in getInstance()
74 return new Grouper(grouping1, grouping2, minGrouping); in getInstance()
[all …]
DPatternStringUtils.java82 int grouping2 = Math.max(0, Math.min(properties.getSecondaryGroupingSize(), dosMax)); in propertiesToPatternString() local
106 grouping2 = 0; in propertiesToPatternString()
107 } else if (grouping1 == grouping2) { in propertiesToPatternString()
110 int groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
171 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
DPatternStringParser.java489 short grouping2 = (short) ((result.groupingSizes >>> 16) & 0xffff); in consumeIntegerFormat() local
491 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
494 if (grouping2 == 0 && grouping3 != -1) { in consumeIntegerFormat()
607 short grouping2 = (short) ((positive.groupingSizes >>> 16) & 0xffff); in patternInfoToProperties() local
609 if (grouping2 != -1) { in patternInfoToProperties()
617 properties.setSecondaryGroupingSize(grouping2); in patternInfoToProperties()
/external/cronet/third_party/icu/source/i18n/
Dnumber_grouping.cpp59 auto grouping2 = static_cast<int16_t>(properties.secondaryGroupingSize); in forProperties() local
61 grouping1 = grouping1 > 0 ? grouping1 : grouping2 > 0 ? grouping2 : grouping1; in forProperties()
62 grouping2 = grouping2 > 0 ? grouping2 : grouping1; in forProperties()
63 return {grouping1, grouping2, minGrouping, UNUM_GROUPING_COUNT}; in forProperties()
78 auto grouping2 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 16) & 0xffff); in setLocaleData() local
80 if (grouping2 == -1) { in setLocaleData()
84 grouping2 = grouping1; in setLocaleData()
87 fGrouping2 = grouping2; in setLocaleData()
Dnumber_patternstring.cpp414 auto grouping2 = static_cast<int16_t> ((result.groupingSizes >> 16) & 0xffff); in consumeIntegerFormat() local
416 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
421 if (grouping2 == 0 && grouping3 != -1) { in consumeIntegerFormat()
542 auto grouping2 = static_cast<int16_t> ((positive.groupingSizes >> 16) & 0xffff); in patternInfoToProperties() local
544 if (grouping2 != -1) { in patternInfoToProperties()
552 properties.secondaryGroupingSize = grouping2; in patternInfoToProperties()
722 int32_t grouping2 = uprv_max(0, uprv_min(properties.secondaryGroupingSize, dosMax)); in propertiesToPatternString() local
746 grouping2 = 0; in propertiesToPatternString()
747 } else if (grouping1 == grouping2) { in propertiesToPatternString()
750 int32_t groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
[all …]
Dnumparse_decimal.cpp88 grouping2 = grouper.getSecondary(); in DecimalMatcher()
411 return count != 0 && count <= grouping2; in validateGroup()
418 return count == grouping2; in validateGroup()
Dnumparse_decimal.h49 int16_t grouping2; variable
Ddecimfmt.cpp1192 int32_t grouping2; in getSecondaryGroupingSize() local
1196 grouping2 = DecimalFormatProperties::getDefault().secondaryGroupingSize; in getSecondaryGroupingSize()
1198 grouping2 = fields->properties.secondaryGroupingSize; in getSecondaryGroupingSize()
1200 if (grouping2 < 0) { in getSecondaryGroupingSize()
1203 return grouping2; in getSecondaryGroupingSize()
/external/icu/icu4c/source/i18n/
Dnumber_grouping.cpp59 auto grouping2 = static_cast<int16_t>(properties.secondaryGroupingSize); in forProperties() local
61 grouping1 = grouping1 > 0 ? grouping1 : grouping2 > 0 ? grouping2 : grouping1; in forProperties()
62 grouping2 = grouping2 > 0 ? grouping2 : grouping1; in forProperties()
63 return {grouping1, grouping2, minGrouping, UNUM_GROUPING_COUNT}; in forProperties()
78 auto grouping2 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 16) & 0xffff); in setLocaleData() local
80 if (grouping2 == -1) { in setLocaleData()
84 grouping2 = grouping1; in setLocaleData()
87 fGrouping2 = grouping2; in setLocaleData()
Dnumber_patternstring.cpp414 auto grouping2 = static_cast<int16_t> ((result.groupingSizes >> 16) & 0xffff); in consumeIntegerFormat() local
416 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
421 if (grouping2 == 0 && grouping3 != -1) { in consumeIntegerFormat()
542 auto grouping2 = static_cast<int16_t> ((positive.groupingSizes >> 16) & 0xffff); in patternInfoToProperties() local
544 if (grouping2 != -1) { in patternInfoToProperties()
552 properties.secondaryGroupingSize = grouping2; in patternInfoToProperties()
722 int32_t grouping2 = uprv_max(0, uprv_min(properties.secondaryGroupingSize, dosMax)); in propertiesToPatternString() local
746 grouping2 = 0; in propertiesToPatternString()
747 } else if (grouping1 == grouping2) { in propertiesToPatternString()
750 int32_t groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
[all …]
Dnumparse_decimal.cpp88 grouping2 = grouper.getSecondary(); in DecimalMatcher()
411 return count != 0 && count <= grouping2; in validateGroup()
418 return count == grouping2; in validateGroup()
Dnumparse_decimal.h49 int16_t grouping2; variable
Ddecimfmt.cpp1192 int32_t grouping2; in getSecondaryGroupingSize() local
1196 grouping2 = DecimalFormatProperties::getDefault().secondaryGroupingSize; in getSecondaryGroupingSize()
1198 grouping2 = fields->properties.secondaryGroupingSize; in getSecondaryGroupingSize()
1200 if (grouping2 < 0) { in getSecondaryGroupingSize()
1203 return grouping2; in getSecondaryGroupingSize()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DDecimalMatcher.java36 private final int grouping2; field in DecimalMatcher
103 grouping2 = grouper.getSecondary(); in DecimalMatcher()
431 return count != 0 && count <= grouping2; in validateGroup()
438 return count == grouping2; in validateGroup()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DDecimalMatcher.java34 private final int grouping2; field in DecimalMatcher
101 grouping2 = grouper.getSecondary(); in DecimalMatcher()
429 return count != 0 && count <= grouping2; in validateGroup()
436 return count == grouping2; in validateGroup()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDataDrivenNumberFormatTestData.java100 public Integer grouping2 = null; field in DataDrivenNumberFormatTestData
340 grouping2 = Integer.valueOf(value); in setGrouping2()
450 grouping2 = null; in clearGrouping2()
DNumberFormatDataDrivenTest.java236 if (tuple.grouping2 != null) {
237 fmt.setSecondaryGroupingSize(tuple.grouping2);
409 if (tuple.grouping2 != null) {
516 if (tuple.grouping2 != null) { in propertiesFromTuple()
517 properties.setSecondaryGroupingSize(tuple.grouping2); in propertiesFromTuple()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDataDrivenNumberFormatTestData.java103 public Integer grouping2 = null; field in DataDrivenNumberFormatTestData
343 grouping2 = Integer.valueOf(value); in setGrouping2()
453 grouping2 = null; in clearGrouping2()
DNumberFormatDataDrivenTest.java239 if (tuple.grouping2 != null) {
240 fmt.setSecondaryGroupingSize(tuple.grouping2);
412 if (tuple.grouping2 != null) {
519 if (tuple.grouping2 != null) { in propertiesFromTuple()
520 properties.setSecondaryGroupingSize(tuple.grouping2); in propertiesFromTuple()
/external/icu/libicu/cts_headers/
Dnumparse_decimal.h49 int16_t grouping2; variable
/external/cronet/third_party/icu/source/test/intltest/
Dnumberformattesttuple.h110 int32_t grouping2; variable
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h110 int32_t grouping2; variable

12