Home
last modified time | relevance | path

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

12

/third_party/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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
110 grouping2 = 0; in propertiesToPatternString()
111 } else if (grouping1 == grouping2) { in propertiesToPatternString()
114 int groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
171 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
DPatternStringParser.java446 short grouping2 = (short) ((result.groupingSizes >>> 16) & 0xffff); in consumeIntegerFormat() local
448 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
451 if (grouping2 == 0 && grouping3 != -1) { in consumeIntegerFormat()
564 short grouping2 = (short) ((positive.groupingSizes >>> 16) & 0xffff); in patternInfoToProperties() local
566 if (grouping2 != -1) { in patternInfoToProperties()
574 properties.setSecondaryGroupingSize(grouping2); in patternInfoToProperties()
/third_party/skia/third_party/externals/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.cpp369 auto grouping2 = static_cast<int16_t> ((result.groupingSizes >> 16) & 0xffff); in consumeIntegerFormat() local
371 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
376 if (grouping2 == 0 && grouping3 != -1) { in consumeIntegerFormat()
497 auto grouping2 = static_cast<int16_t> ((positive.groupingSizes >> 16) & 0xffff); in patternInfoToProperties() local
499 if (grouping2 != -1) { in patternInfoToProperties()
507 properties.secondaryGroupingSize = grouping2; in patternInfoToProperties()
674 int32_t grouping2 = uprv_max(0, uprv_min(properties.secondaryGroupingSize, dosMax)); in propertiesToPatternString() local
698 grouping2 = 0; in propertiesToPatternString()
699 } else if (grouping1 == grouping2) { in propertiesToPatternString()
702 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
/third_party/node/deps/icu-small/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
/third_party/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
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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()
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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()
/third_party/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h110 int32_t grouping2; variable

12