Home
last modified time | relevance | path

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

12345678

/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/cpython3/Lib/test/
Dtest_locale.py165 self._test_format("%f", 1024, grouping=1, out='1%s024.000000' % self.sep)
166 self._test_format("%f", 102, grouping=1, out='102.000000')
167 self._test_format("%f", -42, grouping=1, out='-42.000000')
168 self._test_format("%+f", -42, grouping=1, out='-42.000000')
171 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20))
173 self._test_format("%+10.f", -4200, grouping=1,
175 self._test_format("%-10.f", -4200, grouping=1,
179 self._test_format("%d", 4200, grouping=True, out='4%s200' % self.sep)
180 self._test_format("%+d", 4200, grouping=True, out='+4%s200' % self.sep)
181 self._test_format("%+d", -4200, grouping=True, out='-4%s200' % self.sep)
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Doptimization_registry.h87 void Register(Grouping grouping, int phase,
92 Status RunGrouping(Grouping grouping,
106 OptimizationPassRegistration(OptimizationPassRegistry::Grouping grouping, in OptimizationPassRegistration() argument
109 OptimizationPassRegistry::Global()->Register(grouping, phase, in OptimizationPassRegistration()
116 #define REGISTER_OPTIMIZATION(grouping, phase, optimization) \ argument
117 REGISTER_OPTIMIZATION_UNIQ_HELPER(__COUNTER__, grouping, phase, optimization)
119 #define REGISTER_OPTIMIZATION_UNIQ_HELPER(ctr, grouping, phase, optimization) \ argument
120 REGISTER_OPTIMIZATION_UNIQ(ctr, grouping, phase, optimization)
122 #define REGISTER_OPTIMIZATION_UNIQ(ctr, grouping, phase, optimization) \ argument
125 grouping, phase, \
Doptimization_registry.cc28 Grouping grouping, int phase, std::unique_ptr<GraphOptimizationPass> pass) { in Register() argument
29 groups_[grouping][phase].push_back(std::move(pass)); in Register()
33 Grouping grouping, const GraphOptimizationPassOptions& options) { in RunGrouping() argument
34 auto group = groups_.find(grouping); in RunGrouping()
/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()
/external/python/cpython3/Objects/stringlib/
Dlocaleutil.h10 const char *grouping; member
16 STRINGLIB(GroupGenerator_init)(STRINGLIB(GroupGenerator) *self, const char *grouping) in STRINGLIB()
18 self->grouping = grouping; in STRINGLIB()
31 switch (self->grouping[self->i]) { in STRINGLIB()
38 char ch = self->grouping[self->i]; in STRINGLIB()
109 const char *grouping, in STRINGLIB()
128 STRINGLIB(GroupGenerator_init)(&groupgen, grouping); in STRINGLIB()
/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.cpp1317 getMinimumLengthToDescribeGrouping(const DigitGrouping &grouping) { in getMinimumLengthToDescribeGrouping() argument
1318 if (grouping.fGrouping <= 0) { in getMinimumLengthToDescribeGrouping()
1321 if (grouping.fGrouping2 <= 0) { in getMinimumLengthToDescribeGrouping()
1322 return grouping.fGrouping + 1; in getMinimumLengthToDescribeGrouping()
1324 return grouping.fGrouping + grouping.fGrouping2 + 1; in getMinimumLengthToDescribeGrouping()
1341 const DigitGrouping &grouping, in getLeftDigitsForLeftLength() argument
1346 int32_t lengthSoFar = leftDigits + grouping.getSeparatorCount(leftDigits); in getLeftDigitsForLeftLength()
1348 lengthSoFar += grouping.isSeparatorAt(leftDigits + 1, leftDigits) ? 2 : 1; in getLeftDigitsForLeftLength()
1376 DigitGrouping grouping(fEffGrouping); in toNumberPattern() local
1377 grouping.fMinGrouping = 0; in toNumberPattern()
[all …]
Dnumber_formatimpl.cpp233 fMicros.grouping = macros.grouper; in macrosToMicroGenerator()
236 fMicros.grouping = Grouper::minTwoDigits(); in macrosToMicroGenerator()
238 fMicros.grouping = Grouper::defaults(); in macrosToMicroGenerator()
240 fMicros.grouping.setLocaleData(*fPatternInfo); in macrosToMicroGenerator()
432 if (micros.grouping.groupAtPosition(i, quantity)) { in writeIntegerDigits()
/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/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/python/cpython3/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
194 return _format(percent, value, grouping, monetary, *additional)
196 def _format(percent, value, grouping=False, monetary=False, *additional): argument
205 if grouping:
214 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/tensorflow/tensorflow/contrib/data/python/kernel_tests/
Dbucketing_test.py23 from tensorflow.contrib.data.python.ops import grouping
43 grouping.group_by_window(lambda x: x % 2, lambda _, xs: xs.batch(4),
70 grouping.group_by_window(lambda x: x % 3, lambda _, xs: xs.batch(4),
91 grouping.group_by_window(lambda x: x % 2, lambda _, xs: xs.batch(4),
119 grouping.group_by_window(lambda x, _: x % 2, reduce_func,
145 .apply(grouping.group_by_window(
170 grouping.group_by_window(lambda x: x % 3, lambda _, xs: xs.batch(4), 4))
219 grouping.group_by_window(
254 grouping.group_by_window(
325 grouping.group_by_window(
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPatternStringUtils.java63 int grouping1, grouping2, grouping; in propertiesToPatternString() local
66 grouping = groupingSize; in propertiesToPatternString()
70 grouping = groupingSize; in propertiesToPatternString()
74 grouping = groupingSize; in propertiesToPatternString()
78 grouping = 0; in propertiesToPatternString()
127 if (magnitude > grouping2 && grouping > 0 && (magnitude - grouping2) % grouping == 0) { in propertiesToPatternString()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPatternStringUtils.java65 int grouping1, grouping2, grouping; in propertiesToPatternString() local
68 grouping = groupingSize; in propertiesToPatternString()
72 grouping = groupingSize; in propertiesToPatternString()
76 grouping = groupingSize; in propertiesToPatternString()
80 grouping = 0; in propertiesToPatternString()
129 if (magnitude > grouping2 && grouping > 0 && (magnitude - grouping2) % grouping == 0) { in propertiesToPatternString()
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DDecimalFormatSymbols.java.patch30 * Returns the character used for grouping separator. Different for French, etc.
38 * Sets the character used for grouping separator. Different for French, etc.
94 * <strong>[icu]</strong> Returns the monetary grouping separator.
95 * @return the monetary grouping separator character
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberFormatterImpl.java176 micros.grouping = macros.grouper; in macrosToMicroGenerator()
179 micros.grouping = Grouper.minTwoDigits(); in macrosToMicroGenerator()
181 micros.grouping = Grouper.defaults(); in macrosToMicroGenerator()
183 micros.grouping = micros.grouping.withLocaleData(patternInfo); in macrosToMicroGenerator()
342 if (micros.grouping.groupAtPosition(i, quantity)) { in writeIntegerDigits()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterImpl.java177 micros.grouping = macros.grouper; in macrosToMicroGenerator()
180 micros.grouping = Grouper.minTwoDigits(); in macrosToMicroGenerator()
182 micros.grouping = Grouper.defaults(); in macrosToMicroGenerator()
184 micros.grouping = micros.grouping.withLocaleData(patternInfo); in macrosToMicroGenerator()
343 if (micros.grouping.groupAtPosition(i, quantity)) { in writeIntegerDigits()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberformattestspecification.txt101 test patterns with leading grouping separator
275 test minimum grouping digits
281 // min grouping digits not supported in any existing implementation
426 test grouping used setters
436 test grouping used setters in parsing
450 test no grouping in pattern with parsing
459 test grouping setters
465 output grouping breaks grouping2 minGroupingDigits
709 // No secondary grouping in JDK
744 // JDK stops parsing at the spaces. JDK doesn't see space as a grouping separator
[all …]

12345678