Home
last modified time | relevance | path

Searched refs:grouping (Results 1 – 25 of 124) sorted by relevance

12345

/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/
Dgrouping.pass.cpp68 assert(f.grouping() == s || f.grouping() == ""); in main()
72 assert(f.grouping() == s || f.grouping() == ""); in main()
76 assert(f.grouping() == s || f.grouping() == ""); in main()
80 assert(f.grouping() == s || f.grouping() == ""); in main()
85 assert(f.grouping() == "\3\3"); in main()
89 assert(f.grouping() == "\3\3"); in main()
93 assert(f.grouping() == "\3\3"); in main()
97 assert(f.grouping() == "\3\3"); in main()
102 assert(f.grouping() == "\3"); in main()
106 assert(f.grouping() == "\3"); in main()
[all …]
/external/python/cpython2/Lib/test/
Dtest_locale.py169 self._test_format("%f", 1024, grouping=1, out='1%s024.000000' % self.sep)
170 self._test_format("%f", 102, grouping=1, out='102.000000')
171 self._test_format("%f", -42, grouping=1, out='-42.000000')
172 self._test_format("%+f", -42, grouping=1, out='-42.000000')
175 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20))
177 self._test_format("%+10.f", -4200, grouping=1,
179 self._test_format("%-10.f", -4200, grouping=1,
183 self._test_format("%d", 4200, grouping=True, out='4%s200' % self.sep)
184 self._test_format("%+d", 4200, grouping=True, out='+4%s200' % self.sep)
185 self._test_format("%+d", -4200, grouping=True, out='-4%s200' % self.sep)
[all …]
/external/python/cpython2/Objects/stringlib/
Dlocaleutil.h12 const char *grouping; member
18 _GroupGenerator_init(GroupGenerator *self, const char *grouping) in _GroupGenerator_init() argument
20 self->grouping = grouping; in _GroupGenerator_init()
33 switch (self->grouping[self->i]) { in _GroupGenerator_next()
40 char ch = self->grouping[self->i]; in _GroupGenerator_next()
118 const char *grouping, in _Py_InsertThousandsGrouping() argument
137 _GroupGenerator_init(&groupgen, grouping); in _Py_InsertThousandsGrouping()
206 const char *grouping = locale_data->grouping; in _Py_InsertThousandsGroupingLocale() local
210 min_width, grouping, thousands_sep); in _Py_InsertThousandsGroupingLocale()
Dformatter.h374 char *grouping; member
515 locale->grouping, in calc_number_widths()
599 locale->grouping, locale->thousands_sep); in fill_number()
646 locale_info->grouping = locale_data->grouping; in get_locale_info()
652 locale_info->grouping = "\3"; /* Group every 3 characters. The in get_locale_info()
659 locale_info->grouping = no_grouping; in get_locale_info()
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/
Dgrouping.pass.cpp32 assert(np.grouping() == ""); in main()
37 assert(np.grouping() == ""); in main()
45 assert(np.grouping() == "\3\3"); in main()
50 assert(np.grouping() == "\3\3"); in main()
63 assert(np.grouping() == group); in main()
68 assert(np.grouping() == group); in main()
/external/icu/icu4c/source/i18n/
Ddigitformatter.cpp94 const DigitGrouping &grouping, in countChar32() argument
106 …result += grouping.getSeparatorCount(interval.getIntDigitCount()) * fGroupingSeparator.countChar32… in countChar32()
113 const DigitGrouping &grouping, in countChar32() argument
122 grouping, in countChar32()
139 DigitGrouping grouping; in countChar32() local
141 grouping, in countChar32()
154 DigitGrouping grouping; in countChar32() local
156 grouping, mantissaInterval, options.fMantissa); in countChar32()
165 const DigitGrouping &grouping, in format() argument
209 if (grouping.isSeparatorAt(digitsLeftOfDecimal, i)) { in format()
[all …]
Dvalueformatter.cpp74 const DigitGrouping &grouping, in isNoGrouping() argument
80 return grouping.isNoGrouping(value, range); in isNoGrouping()
200 const DigitGrouping &grouping, in prepareFixedDecimalFormatting() argument
205 fGrouping = &grouping; in prepareFixedDecimalFormatting()
Ddigitformatter.h162 const DigitGrouping &grouping,
203 const DigitGrouping &grouping,
275 const DigitGrouping &grouping,
Ddecimfmtimpl.cpp1316 getMinimumLengthToDescribeGrouping(const DigitGrouping &grouping) { in getMinimumLengthToDescribeGrouping() argument
1317 if (grouping.fGrouping <= 0) { in getMinimumLengthToDescribeGrouping()
1320 if (grouping.fGrouping2 <= 0) { in getMinimumLengthToDescribeGrouping()
1321 return grouping.fGrouping + 1; in getMinimumLengthToDescribeGrouping()
1323 return grouping.fGrouping + grouping.fGrouping2 + 1; in getMinimumLengthToDescribeGrouping()
1340 const DigitGrouping &grouping, in getLeftDigitsForLeftLength() argument
1345 int32_t lengthSoFar = leftDigits + grouping.getSeparatorCount(leftDigits); in getLeftDigitsForLeftLength()
1347 lengthSoFar += grouping.isSeparatorAt(leftDigits + 1, leftDigits) ? 2 : 1; in getLeftDigitsForLeftLength()
1375 DigitGrouping grouping(fEffGrouping); in toNumberPattern() local
1376 grouping.fMinGrouping = 0; in toNumberPattern()
[all …]
Dvalueformatter.h121 const DigitGrouping &grouping,
Dwinnmfmt.cpp61 static UINT getGrouping(const char *grouping) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
66 for (s = grouping; *s != '\0'; s += 1) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
/external/python/cpython2/Lib/
Dlocale.py126 def _grouping_intervals(grouping): argument
128 for interval in grouping:
145 grouping = conv[monetary and 'mon_grouping' or 'grouping']
146 if not grouping:
156 for interval in _grouping_intervals(grouping):
187 def format(percent, value, grouping=False, monetary=False, *additional): argument
198 return _format(percent, value, grouping, monetary, *additional)
200 def _format(percent, value, grouping=False, monetary=False, *additional): argument
209 if grouping:
218 if grouping:
[all …]
/external/icu/icu4c/source/test/intltest/
Dnumberformat2test.cpp161 const DigitGrouping &grouping,
310 DigitGrouping grouping; in TestGroupingUsed() local
311 assertFalse("", grouping.isGroupingUsed()); in TestGroupingUsed()
314 DigitGrouping grouping; in TestGroupingUsed() local
315 grouping.fGrouping = 2; in TestGroupingUsed()
316 assertTrue("", grouping.isGroupingUsed()); in TestGroupingUsed()
810 DigitGrouping grouping; in TestDigitFormatterDefaultCtor() local
816 grouping, in TestDigitFormatterDefaultCtor()
835 DigitGrouping grouping; in TestDigitFormatterMonetary() local
842 grouping.fGrouping = 3; in TestDigitFormatterMonetary()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/
Dgrouping.pass.cpp61 assert(f.grouping() == std::string()); in main()
65 assert(f.grouping() == std::string()); in main()
69 assert(f.grouping() == std::string()); in main()
73 assert(f.grouping() == std::string()); in main()
/external/bison/lib/
Dstrtol.c258 const char *grouping; in INTERNAL() local
262 grouping = _NL_CURRENT (LC_NUMERIC, GROUPING); in INTERNAL()
263 if (*grouping <= 0 || *grouping == CHAR_MAX) in INTERNAL()
264 grouping = NULL; in INTERNAL()
274 grouping = NULL; in INTERNAL()
278 grouping = NULL; in INTERNAL()
339 end = correctly_grouped_prefix (s, end, thousands, grouping); in INTERNAL()
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/facet.numpunct.members/
Dgrouping.pass.cpp25 assert(np.grouping() == std::string()); in main()
30 assert(np.grouping() == std::string()); in main()
/external/python/cpython2/Doc/library/
Dlocale.rst69 | | ``'grouping'`` | Sequence of numbers specifying |
75 | | | grouping is performed. If the |
110 | | ``'mon_grouping'`` | Equivalent to ``'grouping'``, |
366 .. function:: format(format, val[, grouping[, monetary]])
370 values, the decimal point is modified if appropriate. If *grouping* is true,
371 also takes the grouping into account.
374 grouping strings.
383 .. function:: format_string(format, val[, grouping])
391 .. function:: currency(val[, symbol[, grouping[, international]]])
396 the default. If *grouping* is true (which is not the default), grouping is done
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatTestData.java100 public Integer grouping = null; field in NumberFormatTestData
334 grouping = Integer.valueOf(value); in setGrouping()
444 grouping = null; in clearGrouping()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTestData.java99 public Integer grouping = null; field in NumberFormatTestData
333 grouping = Integer.valueOf(value); in setGrouping()
443 grouping = null; in clearGrouping()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DRegion.java307 for ( String grouping : groupings ) { in loadRegionData()
308 if (regionIDMap.containsKey(grouping)) { in loadRegionData()
309 r = regionIDMap.get(grouping); in loadRegionData()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DRegion.java299 for ( String grouping : groupings ) { in loadRegionData()
300 if (regionIDMap.containsKey(grouping)) { in loadRegionData()
301 r = regionIDMap.get(grouping); in loadRegionData()
/external/icu/icu4j/eclipse-build/misc/
DICUConfig.properties20 # decimal/grouping separators. When this property is true,
/external/tremolo/Tremolo/
Dres012.c68 info->grouping=oggpack_read(opb,24)+1; // "partition size" in spec in res_unpack()
118 int samples_per_partition=info->grouping; in res_inverse()
/external/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt199 test minimum grouping digits
205 // min grouping digits not supported in any existing implementation
343 test grouping used setters
353 test grouping setters
359 output grouping breaks grouping2 minGroupingDigits
563 // No secondary grouping in JDK
595 // JDK stops parsing at the spaces. JDK doesn't see space as a grouping separator
700 // In general the grouping separators have to match their expected
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberformattestspecification.txt199 test minimum grouping digits
205 // min grouping digits not supported in any existing implementation
343 test grouping used setters
353 test grouping setters
359 output grouping breaks grouping2 minGroupingDigits
563 // No secondary grouping in JDK
595 // JDK stops parsing at the spaces. JDK doesn't see space as a grouping separator
700 // In general the grouping separators have to match their expected

12345