Home
last modified time | relevance | path

Searched refs:grouping1 (Results 1 – 25 of 30) sorted by relevance

12

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DGrouper.java56 short grouping1 = (short) properties.getGroupingSize(); 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
65 if (grouping1 == -1) { in getInstance()
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()
[all …]
DPatternStringUtils.java86 int grouping1 = Math.max(0, Math.min(properties.getGroupingSize(), dosMax)); in propertiesToPatternString() local
109 grouping1 = 0; in propertiesToPatternString()
111 } else if (grouping1 == grouping2) { in propertiesToPatternString()
112 grouping1 = 0; in propertiesToPatternString()
114 int groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
167 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString()
171 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
DPatternStringParser.java445 short grouping1 = (short) (result.groupingSizes & 0xffff); in consumeIntegerFormat() local
448 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
563 short grouping1 = (short) (positive.groupingSizes & 0xffff); in patternInfoToProperties() local
567 properties.setGroupingSize(grouping1); in patternInfoToProperties()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DGrouper.java54 short grouping1 = (short) properties.getGroupingSize(); 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
63 if (grouping1 == -1) { in getInstance()
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()
[all …]
DPatternStringUtils.java81 int grouping1 = Math.max(0, Math.min(properties.getGroupingSize(), dosMax)); in propertiesToPatternString() local
104 grouping1 = 0; in propertiesToPatternString()
106 } else if (grouping1 == grouping2) { in propertiesToPatternString()
107 grouping1 = 0; in propertiesToPatternString()
109 int groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
162 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString()
166 … if (magnitude > grouping1 && grouping2 > 0 && (magnitude - grouping1) % grouping2 == 0) { in propertiesToPatternString()
DPatternStringParser.java439 short grouping1 = (short) (result.groupingSizes & 0xffff); in consumeIntegerFormat() local
442 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
557 short grouping1 = (short) (positive.groupingSizes & 0xffff); in patternInfoToProperties() local
561 properties.setGroupingSize(grouping1); in patternInfoToProperties()
/third_party/node/deps/icu-small/source/i18n/
Dnumber_grouping.cpp58 auto grouping1 = static_cast<int16_t>(properties.groupingSize); 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()
77 auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData() local
81 grouping1 = fGrouping1 == -4 ? (short) 3 : (short) -1; in setLocaleData()
84 grouping2 = grouping1; in setLocaleData()
86 fGrouping1 = grouping1; in setLocaleData()
Dnumber_patternstring.cpp413 auto grouping1 = static_cast<int16_t> (result.groupingSizes & 0xffff); in consumeIntegerFormat()
416 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
541 auto grouping1 = static_cast<int16_t> (positive.groupingSizes & 0xffff); in patternInfoToProperties() local
545 properties.groupingSize = grouping1; in patternInfoToProperties()
721 int32_t grouping1 = uprv_max(0, uprv_min(properties.groupingSize, dosMax)); in propertiesToPatternString() local
745 grouping1 = 0; in propertiesToPatternString()
747 } else if (grouping1 == grouping2) { in propertiesToPatternString()
748 grouping1 = 0; in propertiesToPatternString()
750 int32_t groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
811 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString()
[all …]
Dnumparse_decimal.h48 int16_t grouping1; variable
/third_party/icu/icu4c/source/i18n/
Dnumber_grouping.cpp58 auto grouping1 = static_cast<int16_t>(properties.groupingSize); 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()
77 auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData() local
81 grouping1 = fGrouping1 == -4 ? (short) 3 : (short) -1; in setLocaleData()
84 grouping2 = grouping1; in setLocaleData()
86 fGrouping1 = grouping1; in setLocaleData()
Dnumber_patternstring.cpp368 auto grouping1 = static_cast<int16_t> (result.groupingSizes & 0xffff); in consumeIntegerFormat()
371 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
496 auto grouping1 = static_cast<int16_t> (positive.groupingSizes & 0xffff); in patternInfoToProperties() local
500 properties.groupingSize = grouping1; in patternInfoToProperties()
673 int32_t grouping1 = uprv_max(0, uprv_min(properties.groupingSize, dosMax)); in propertiesToPatternString() local
697 grouping1 = 0; in propertiesToPatternString()
699 } else if (grouping1 == grouping2) { in propertiesToPatternString()
700 grouping1 = 0; in propertiesToPatternString()
702 int32_t groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
759 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString()
[all …]
Dnumparse_decimal.h48 int16_t grouping1; variable
Dnumparse_decimal.cpp87 grouping1 = grouper.getPrimary(); in DecimalMatcher()
416 return count == grouping1; in validateGroup()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_grouping.cpp58 auto grouping1 = static_cast<int16_t>(properties.groupingSize); 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()
77 auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData() local
81 grouping1 = fGrouping1 == -4 ? (short) 3 : (short) -1; in setLocaleData()
84 grouping2 = grouping1; in setLocaleData()
86 fGrouping1 = grouping1; in setLocaleData()
Dnumber_patternstring.cpp368 auto grouping1 = static_cast<int16_t> (result.groupingSizes & 0xffff); in consumeIntegerFormat()
371 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
496 auto grouping1 = static_cast<int16_t> (positive.groupingSizes & 0xffff); in patternInfoToProperties() local
500 properties.groupingSize = grouping1; in patternInfoToProperties()
673 int32_t grouping1 = uprv_max(0, uprv_min(properties.groupingSize, dosMax)); in propertiesToPatternString() local
697 grouping1 = 0; in propertiesToPatternString()
699 } else if (grouping1 == grouping2) { in propertiesToPatternString()
700 grouping1 = 0; in propertiesToPatternString()
702 int32_t groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
759 if (magnitude > 0 && magnitude == grouping1) { in propertiesToPatternString()
[all …]
Dnumparse_decimal.h48 int16_t grouping1; variable
Dnumparse_decimal.cpp87 grouping1 = grouper.getPrimary(); in DecimalMatcher()
416 return count == grouping1; in validateGroup()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumber_grouping.cpp59 auto grouping1 = static_cast<int16_t>(properties.groupingSize); in forProperties() local
62 grouping1 = grouping1 > 0 ? grouping1 : grouping2 > 0 ? grouping2 : grouping1; in forProperties()
63 grouping2 = grouping2 > 0 ? grouping2 : grouping1; in forProperties()
64 return {grouping1, grouping2, minGrouping, UNUM_GROUPING_COUNT}; in forProperties()
71 auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff); in setLocaleData() local
75 grouping1 = fGrouping1 == -4 ? (short) 3 : (short) -1; in setLocaleData()
78 grouping2 = grouping1; in setLocaleData()
87 fGrouping1 = grouping1; in setLocaleData()
Dnumber_patternstring.cpp367 auto grouping1 = static_cast<int16_t> (result.groupingSizes & 0xffff); in consumeIntegerFormat()
370 if (grouping1 == 0 && grouping2 != -1) { in consumeIntegerFormat()
495 auto grouping1 = static_cast<int16_t> (positive.groupingSizes & 0xffff); in patternInfoToProperties() local
499 properties.groupingSize = grouping1; in patternInfoToProperties()
684 int grouping1, grouping2, grouping; in propertiesToPatternString() local
688 grouping1 = groupingSize; in propertiesToPatternString()
692 grouping1 = 0; in propertiesToPatternString()
696 grouping1 = 0; in propertiesToPatternString()
700 grouping1 = 0; in propertiesToPatternString()
703 int groupingLength = grouping1 + grouping2 + 1; in propertiesToPatternString()
Dnumparse_decimal.h48 int16_t grouping1; variable
Dnumparse_decimal.cpp86 grouping1 = grouper.getPrimary(); in DecimalMatcher()
415 return count == grouping1; in validateGroup()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DDecimalMatcher.java33 private final int grouping1; field in DecimalMatcher
100 grouping1 = grouper.getPrimary(); in DecimalMatcher()
434 return count == grouping1; in validateGroup()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/parse/
DDecimalMatcher.java35 private final int grouping1; field in DecimalMatcher
102 grouping1 = grouper.getPrimary(); in DecimalMatcher()
436 return count == grouping1; in validateGroup()
/third_party/boost/libs/lexical_cast/test/
Dlexical_cast_float_types_test.cpp479 std::string grouping1 = BOOST_USE_FACET(numpunct, oldloc).grouping(); in test_conversion_from_to_float() local
480 std::string grouping2(grouping1); in test_conversion_from_to_float()
498 if(grouping1 != grouping2) in test_conversion_from_to_float()
501 if(grouping1.empty() && grouping2.empty()) in test_conversion_from_to_float()
Dlexical_cast_integral_types_test.cpp489 std::string grouping1 = BOOST_USE_FACET(numpunct, oldloc).grouping(); in test_conversion_from_to_integral() local
490 std::string grouping2(grouping1); in test_conversion_from_to_integral()
508 if(grouping1 != grouping2) in test_conversion_from_to_integral()
511 if(grouping1.empty() && grouping2.empty()) in test_conversion_from_to_integral()

12