Home
last modified time | relevance | path

Searched refs:groupingSize (Results 1 – 17 of 17) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPatternStringUtils.java35 int groupingSize = Math.min(properties.getSecondaryGroupingSize(), dosMax); in propertiesToPatternString() local
67 if (groupingSize != Math.min(dosMax, -1) in propertiesToPatternString()
69 && groupingSize != firstGroupingSize) { in propertiesToPatternString()
70 grouping = groupingSize; in propertiesToPatternString()
71 grouping1 = groupingSize; in propertiesToPatternString()
73 } else if (groupingSize != Math.min(dosMax, -1)) { in propertiesToPatternString()
74 grouping = groupingSize; in propertiesToPatternString()
76 grouping2 = groupingSize; in propertiesToPatternString()
78 grouping = groupingSize; in propertiesToPatternString()
DDecimalFormatProperties.java89 private transient int groupingSize; field in DecimalFormatProperties
161 groupingSize = -1; in _clear()
207 groupingSize = other.groupingSize; in _copyFrom()
254 eq = eq && _equalsHelper(groupingSize, other.groupingSize); in _equals()
317 hashCode ^= _hashCodeHelper(groupingSize); in _hashCode()
444 return groupingSize; in getGroupingSize()
797 public DecimalFormatProperties setGroupingSize(int groupingSize) { in setGroupingSize() argument
798 this.groupingSize = groupingSize; in setGroupingSize()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPatternStringUtils.java37 int groupingSize = Math.min(properties.getSecondaryGroupingSize(), dosMax); in propertiesToPatternString() local
69 if (groupingSize != Math.min(dosMax, -1) in propertiesToPatternString()
71 && groupingSize != firstGroupingSize) { in propertiesToPatternString()
72 grouping = groupingSize; in propertiesToPatternString()
73 grouping1 = groupingSize; in propertiesToPatternString()
75 } else if (groupingSize != Math.min(dosMax, -1)) { in propertiesToPatternString()
76 grouping = groupingSize; in propertiesToPatternString()
78 grouping2 = groupingSize; in propertiesToPatternString()
80 grouping = groupingSize; in propertiesToPatternString()
DDecimalFormatProperties.java94 private transient int groupingSize; field in DecimalFormatProperties
166 groupingSize = -1; in _clear()
212 groupingSize = other.groupingSize; in _copyFrom()
259 eq = eq && _equalsHelper(groupingSize, other.groupingSize); in _equals()
322 hashCode ^= _hashCodeHelper(groupingSize); in _hashCode()
449 return groupingSize; in getGroupingSize()
802 public DecimalFormatProperties setGroupingSize(int groupingSize) { in setGroupingSize() argument
803 this.groupingSize = groupingSize; in setGroupingSize()
/external/icu/icu4c/source/i18n/
Dnumber_patternstring.cpp499 properties.groupingSize = grouping1; in patternInfoToProperties()
502 properties.groupingSize = -1; in patternInfoToProperties()
653 int groupingSize = uprv_min(properties.secondaryGroupingSize, dosMax); in propertiesToPatternString() local
654 int firstGroupingSize = uprv_min(properties.groupingSize, dosMax); in propertiesToPatternString()
685 if (groupingSize != uprv_min(dosMax, -1) && firstGroupingSize != uprv_min(dosMax, -1) && in propertiesToPatternString()
686 groupingSize != firstGroupingSize) { in propertiesToPatternString()
687 grouping = groupingSize; in propertiesToPatternString()
688 grouping1 = groupingSize; in propertiesToPatternString()
690 } else if (groupingSize != uprv_min(dosMax, -1)) { in propertiesToPatternString()
691 grouping = groupingSize; in propertiesToPatternString()
[all …]
Dnumber_decimfmtprops.cpp44 groupingSize = -1; in clear()
116 eq = eq && groupingSize == other.groupingSize; in _equals()
Ddecimfmt.cpp843 if (fields->properties->groupingSize < 0) { in getGroupingSize()
846 return fields->properties->groupingSize; in getGroupingSize()
850 if (newValue == fields->properties->groupingSize) { return; } in setGroupingSize()
851 fields->properties->groupingSize = newValue; in setGroupingSize()
1301 int32_t groupingSize = fields->properties->groupingSize; in setupFastFormat() local
1302 bool unusualGroupingSize = groupingSize > 0 && groupingSize != 3; in setupFastFormat()
1341 …fields->fastData.cpGroupingSeparator = groupingUsed && groupingSize == 3 ? groupingString.charAt(0… in setupFastFormat()
Dcompactdecimalformat.cpp34 fields->properties->groupingSize = -2; // do not forward grouping information in CompactDecimalFormat()
Dnumber_grouping.cpp59 auto grouping1 = static_cast<int16_t>(properties.groupingSize); in forProperties()
Dnumber_decimfmtprops.h105 int32_t groupingSize; member
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java225 int groupingSize = 0; in TestAPI() local
227 groupingSize = pat.getGroupingSize(); in TestAPI()
228 logln("Grouping size (should be 2): " + (long) groupingSize); in TestAPI()
229 if(groupingSize != 2) { in TestAPI()
DIntlTestDecimalFormatAPIC.java184 int groupingSize = 0; in TestAPI() local
186 groupingSize = pat.getGroupingSize(); in TestAPI()
187 logln("Grouping size (should be 2): " + (long) groupingSize); in TestAPI()
188 if (groupingSize != 2) { in TestAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java222 int groupingSize = 0; in TestAPI() local
224 groupingSize = pat.getGroupingSize(); in TestAPI()
225 logln("Grouping size (should be 2): " + (long) groupingSize); in TestAPI()
226 if(groupingSize != 2) { in TestAPI()
DIntlTestDecimalFormatAPIC.java181 int groupingSize = 0; in TestAPI() local
183 groupingSize = pat.getGroupingSize(); in TestAPI()
184 logln("Grouping size (should be 2): " + (long) groupingSize); in TestAPI()
185 if (groupingSize != 2) { in TestAPI()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDecimalFormat_ICU58_Android.java1264 if (isGroupingUsed() && (pos > 0) && (groupingSize > 0)) { in isGroupingPosition()
1265 if ((groupingSize2 > 0) && (pos > groupingSize)) { in isGroupingPosition()
1266 result = ((pos - groupingSize) % groupingSize2) == 0; in isGroupingPosition()
1268 result = pos % groupingSize == 0; in isGroupingPosition()
2492 int gs2 = groupingSize2 == 0 ? groupingSize : groupingSize2; in subparse()
2555 (lastGroup != -1 && groupedDigitCount != groupingSize)) { in subparse()
2605 (lastGroup != -1 && groupedDigitCount != groupingSize)) { in subparse()
2736 if (lastGroup != -1 && groupedDigitCount != groupingSize) { in subparse()
3794 return groupingSize;
3808 groupingSize = (byte) newValue;
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormat_ICU58_Android.java1254 if (isGroupingUsed() && (pos > 0) && (groupingSize > 0)) { in isGroupingPosition()
1255 if ((groupingSize2 > 0) && (pos > groupingSize)) { in isGroupingPosition()
1256 result = ((pos - groupingSize) % groupingSize2) == 0; in isGroupingPosition()
1258 result = pos % groupingSize == 0; in isGroupingPosition()
2480 int gs2 = groupingSize2 == 0 ? groupingSize : groupingSize2; in subparse()
2543 (lastGroup != -1 && groupedDigitCount != groupingSize)) { in subparse()
2593 (lastGroup != -1 && groupedDigitCount != groupingSize)) { in subparse()
2724 if (lastGroup != -1 && groupedDigitCount != groupingSize) { in subparse()
3751 return groupingSize;
3764 groupingSize = (byte) newValue;
[all …]
/external/icu/icu4c/source/test/intltest/
Ddcfmapts.cpp317 int32_t groupingSize = 0; in testAPI() local
319 groupingSize = pat.getGroupingSize(); in testAPI()
320 logln((UnicodeString)"Grouping size (should be 2): " + (int32_t) groupingSize); in testAPI()
321 if(groupingSize != 2) { in testAPI()