Home
last modified time | relevance | path

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

12345678910>>...14

/third_party/python/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 …]
/third_party/boost/boost/lexical_cast/detail/
Dlcast_unsigned_converters.hpp102 std::string const grouping = np.grouping(); in convert() local
103 std::string::size_type const grouping_size = grouping.size(); in convert()
105 if (!grouping_size || grouping[0] <= 0) { in convert()
115 char last_grp_size = grouping[0]; in convert()
122 char const grp_size = grouping[group]; in convert()
204 std::string const& grouping = np.grouping(); in convert() local
205 std::string::size_type const grouping_size = grouping.size(); in convert()
210 if (!grouping_size || grouping[0] <= 0) { in convert()
216 char remained = static_cast<char>(grouping[current_grouping] - 1); in convert()
243 remained = grouping[current_grouping]; in convert()
/third_party/node/deps/icu-small/source/i18n/
Dnumber_grouping.cpp37 Grouper Grouper::forStrategy(UNumberGroupingStrategy grouping) { in forStrategy() argument
38 switch (grouping) { in forStrategy()
40 return {-1, -1, -2, grouping}; in forStrategy()
42 return {-2, -2, -2, grouping}; in forStrategy()
44 return {-2, -2, -3, grouping}; in forStrategy()
46 return {-4, -4, 1, grouping}; in forStrategy()
48 return {3, 3, 1, grouping}; in forStrategy()
/third_party/icu/icu4c/source/i18n/
Dnumber_grouping.cpp37 Grouper Grouper::forStrategy(UNumberGroupingStrategy grouping) { in forStrategy() argument
38 switch (grouping) { in forStrategy()
40 return {-1, -1, -2, grouping}; in forStrategy()
42 return {-2, -2, -2, grouping}; in forStrategy()
44 return {-2, -2, -3, grouping}; in forStrategy()
46 return {-4, -4, 1, grouping}; in forStrategy()
48 return {3, 3, 1, grouping}; in forStrategy()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_grouping.cpp37 Grouper Grouper::forStrategy(UNumberGroupingStrategy grouping) { in forStrategy() argument
38 switch (grouping) { in forStrategy()
40 return {-1, -1, -2, grouping}; in forStrategy()
42 return {-2, -2, -2, grouping}; in forStrategy()
44 return {-2, -2, -3, grouping}; in forStrategy()
46 return {-4, -4, 1, grouping}; in forStrategy()
48 return {3, 3, 1, grouping}; in forStrategy()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumber_grouping.cpp37 Grouper Grouper::forStrategy(UGroupingStrategy grouping) { in forStrategy() argument
38 switch (grouping) { in forStrategy()
40 return {-1, -1, -2, grouping}; in forStrategy()
42 return {-2, -2, -2, grouping}; in forStrategy()
44 return {-2, -2, -3, grouping}; in forStrategy()
46 return {-4, -4, 1, grouping}; in forStrategy()
48 return {3, 3, 1, grouping}; in forStrategy()
/third_party/python/Objects/stringlib/
Dlocaleutil.h4 const char *grouping; member
11 GroupGenerator_init(GroupGenerator *self, const char *grouping) in GroupGenerator_init() argument
13 self->grouping = grouping; in GroupGenerator_init()
27 switch (self->grouping[self->i]) { in GroupGenerator_next()
34 char ch = self->grouping[self->i]; in GroupGenerator_next()
/third_party/python/Lib/
Dlocale.py122 def _grouping_intervals(grouping): argument
124 for interval in grouping:
141 grouping = conv[monetary and 'mon_grouping' or 'grouping']
142 if not grouping:
152 for interval in _grouping_intervals(grouping):
183 def _format(percent, value, grouping=False, monetary=False, *additional): argument
189 formatted = _localize(formatted, grouping, monetary)
193 def _localize(formatted, grouping=False, monetary=False): argument
198 if grouping:
207 if grouping:
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DMacroProps.java29 public Object grouping; field in MacroProps
59 if (grouping == null) in fallback()
60 grouping = fallback.grouping; in fallback()
90 grouping, in hashCode()
117 && Objects.equals(grouping, other.grouping) in equals()
DGrouper.java32 public static Grouper forStrategy(GroupingStrategy grouping) { in forStrategy() argument
33 switch (grouping) { in forStrategy()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMacroProps.java25 public Object grouping; field in MacroProps
57 if (grouping == null) in fallback()
58 grouping = fallback.grouping; in fallback()
92 grouping, in hashCode()
121 && Objects.equals(grouping, other.grouping) in equals()
DGrouper.java30 public static Grouper forStrategy(GroupingStrategy grouping) { in forStrategy() argument
31 switch (grouping) { in forStrategy()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DNumberFormatterImpl.java272 if (macros.grouping instanceof Grouper) { in macrosToMicroGenerator()
273 micros.grouping = (Grouper) macros.grouping; in macrosToMicroGenerator()
274 } else if (macros.grouping instanceof GroupingStrategy) { in macrosToMicroGenerator()
275 micros.grouping = Grouper.forStrategy((GroupingStrategy) macros.grouping); in macrosToMicroGenerator()
278 micros.grouping = Grouper.forStrategy(GroupingStrategy.MIN2); in macrosToMicroGenerator()
280 micros.grouping = Grouper.forStrategy(GroupingStrategy.AUTO); in macrosToMicroGenerator()
282 micros.grouping = micros.grouping.withLocaleData(macros.loc, patternInfo); in macrosToMicroGenerator()
468 if (micros.grouping.groupAtPosition(i, quantity)) { in writeIntegerDigits()
DNumberFormatterSettings.java257 public T grouping(GroupingStrategy strategy) { in grouping() method in NumberFormatterSettings
573 if (macros.grouping == null) { in resolve()
574 macros.grouping = /* (Object) */ current.value; in resolve()
/third_party/icu/icu4c/source/test/intltest/
Dstatic_unisets_test.cpp61 UnicodeSet grouping; in testSetCoverage() local
62 grouping.addAll(decimals); in testSetCoverage()
63 grouping.addAll(*get(unisets::OTHER_GROUPING_SEPARATORS)); in testSetCoverage()
83 ASSERT_IN_SET(grouping, dfs.getConstSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol)); in testSetCoverage()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberFormatterImpl.java310 if (macros.grouping instanceof Grouper) { in macrosToMicroGenerator()
311 micros.grouping = (Grouper) macros.grouping; in macrosToMicroGenerator()
312 } else if (macros.grouping instanceof GroupingStrategy) { in macrosToMicroGenerator()
313 micros.grouping = Grouper.forStrategy((GroupingStrategy) macros.grouping); in macrosToMicroGenerator()
316 micros.grouping = Grouper.forStrategy(GroupingStrategy.MIN2); in macrosToMicroGenerator()
318 micros.grouping = Grouper.forStrategy(GroupingStrategy.AUTO); in macrosToMicroGenerator()
320 micros.grouping = micros.grouping.withLocaleData(macros.loc, patternInfo); in macrosToMicroGenerator()
550 if (micros.grouping.groupAtPosition(i, quantity)) { in writeIntegerDigits()
/third_party/boost/libs/test/doc/test_organization/
Dlogical_grouping.qbk11 organization defines an implicit grouping of test unit following the /subtrees/ extracted from the …
15 However, the subtrees might not reflect all the possible grouping of test units the usage of the te…
18 The __UTF__ provides a flexible way of grouping test units by the use of /labels/, using the decora…
/third_party/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt109 test patterns with leading grouping separator
305 test minimum grouping digits
464 test grouping used setters
474 test grouping used setters in parsing
487 test no grouping in pattern with parsing
496 test grouping setters
502 output grouping grouping2 breaks
506 test grouping setters with min grouping digits
512 output grouping grouping2 minGroupingDigits breaks
753 // No secondary grouping in JDK
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/data/
Dnumberformattestspecification.txt109 test patterns with leading grouping separator
305 test minimum grouping digits
464 test grouping used setters
474 test grouping used setters in parsing
487 test no grouping in pattern with parsing
496 test grouping setters
502 output grouping grouping2 breaks
506 test grouping setters with min grouping digits
512 output grouping grouping2 minGroupingDigits breaks
753 // No secondary grouping in JDK
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberformattestspecification.txt109 test patterns with leading grouping separator
305 test minimum grouping digits
464 test grouping used setters
474 test grouping used setters in parsing
487 test no grouping in pattern with parsing
496 test grouping setters
502 output grouping grouping2 breaks
506 test grouping setters with min grouping digits
512 output grouping grouping2 minGroupingDigits breaks
753 // No secondary grouping in JDK
[all …]
/third_party/ffmpeg/libavcodec/
Daacpsy.c418 uint8_t grouping = 0; in psy_3gpp_window() local
453 grouping = pch->next_grouping; in psy_3gpp_window()
463 grouping = next_type == EIGHT_SHORT_SEQUENCE ? pch->next_grouping : 0; in psy_3gpp_window()
473 grouping = (prev_type == EIGHT_SHORT_SEQUENCE) ? window_grouping[0] : 0; in psy_3gpp_window()
479 wi.grouping[0] = 1; in psy_3gpp_window()
484 if (!((grouping >> i) & 1)) in psy_3gpp_window()
486 wi.grouping[lastgrp]++; in psy_3gpp_window()
888 int grouping = 0; in psy_lame_window() local
984 wi.grouping[0] = 1; in psy_lame_window()
998 wi.grouping[lastgrp]++; in psy_lame_window()
[all …]
/third_party/python/Tools/c-analyzer/cpython/
D_capi.py256 for grouping in groupby + list(GROUPINGS):
257 if grouping not in groupings:
258 groupings.append(grouping)
497 for grouping in GROUPINGS:
498 maxextra[grouping] = max(len(g) for g in GROUPINGS[grouping])
/third_party/boost/libs/locale/src/win32/
Dapi.hpp46 std::string grouping; member
130 res.grouping += char(gr[i]-L'0'); in wcsnumformat_l()
137 res.grouping+=std::numeric_limits<char>::min(); in wcsnumformat_l()
140 res.grouping+=std::numeric_limits<char>::max(); in wcsnumformat_l()
/third_party/boost/libs/locale/src/posix/
Dnumeric.cpp382 std::string grouping; member
393 grouping = cv->grouping; in basic_numpunct()
400 grouping = nl_langinfo_l(GROUPING,lc); in basic_numpunct()
416 grouping_ = np.grouping; in num_punct_posix()
/third_party/python/Doc/library/
Dlocale.rst69 | | ``'grouping'`` | Sequence of numbers specifying |
75 | | | grouping is performed. If the |
110 | | ``'mon_grouping'`` | Equivalent to ``'grouping'``, |
374 .. function:: format_string(format, val, grouping=False, monetary=False)
378 values, the decimal point is modified if appropriate. If *grouping* is true,
379 also takes the grouping into account.
382 grouping strings.
391 .. function:: format(format, val, grouping=False, monetary=False)
403 .. function:: currency(val, symbol=True, grouping=False, international=False)
408 the default. If *grouping* is true (which is not the default), grouping is done
[all …]

12345678910>>...14