Home
last modified time | relevance | path

Searched refs:numbers (Results 1 - 25 of 123) sorted by relevance

12345

/third_party/typescript/tests/baselines/reference/
H A DtemplateLiteralTypesPatterns.js42 declare function numbers(x: `${number}`): void;
44 numbers("1");
45 numbers("-1");
46 numbers("0");
47 numbers("0b1");
48 numbers("0x1");
49 numbers("0o1");
50 numbers("1e21");
51 numbers("1E21");
52 numbers("
[all...]
H A DconstIndexedAccess.js2 const enum numbers {
17 let s1 = test[numbers.zero];
18 let n1 = test[numbers.one];
20 let s2 = test[numbers["zero"]];
21 let n2 = test[numbers["one"]];
36 var s1 = test[0 /* numbers.zero */];
37 var n1 = test[1 /* numbers.one */];
38 var s2 = test[0 /* numbers["zero"] */];
39 var n2 = test[1 /* numbers["one"] */];
/third_party/protobuf/src/google/protobuf/
H A Ddescriptor_database_unittest.cc367 // Can't find non-existent extension numbers. in TEST_P()
409 std::vector<int> numbers; in TEST_P() local
410 EXPECT_TRUE(database_->FindAllExtensionNumbers("Foo", &numbers)); in TEST_P()
411 ASSERT_EQ(2, numbers.size()); in TEST_P()
412 std::sort(numbers.begin(), numbers.end()); in TEST_P()
413 EXPECT_EQ(5, numbers[0]); in TEST_P()
414 EXPECT_EQ(32, numbers[1]); in TEST_P()
418 std::vector<int> numbers; in TEST_P() local
419 EXPECT_TRUE(database_->FindAllExtensionNumbers("corge.Bar", &numbers)); in TEST_P()
427 std::vector<int> numbers; TEST_P() local
433 std::vector<int> numbers; TEST_P() local
762 std::vector<int> numbers; TEST_F() local
770 std::vector<int> numbers; TEST_F() local
778 std::vector<int> numbers; TEST_F() local
787 std::vector<int> numbers; TEST_F() local
797 std::vector<int> numbers; TEST_F() local
[all...]
/third_party/icu/icu4c/source/test/perf/leperf/
H A Dxmlreader.cpp42 static le_uint32 *getHexArray(const UnicodeString &numbers, int32_t &arraySize) in getHexArray() argument
47 while((offset = numbers.indexOf(CH_COMMA, offset + 1)) >= 0) { in getHexArray()
58 while(u_isUWhiteSpace(numbers[start])) { in getHexArray()
62 while((end = numbers.indexOf(CH_COMMA, start)) >= 0) { in getHexArray()
63 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray()
70 while(u_isUWhiteSpace(numbers[start])) { in getHexArray()
76 end = numbers.length(); in getHexArray()
77 while(u_isUWhiteSpace(numbers[end - 1])) { in getHexArray()
81 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray()
88 static float *getFloatArray(const UnicodeString &numbers, int32_ argument
[all...]
/third_party/icu/icu4c/source/test/letest/
H A Dxmlreader.cpp38 static le_uint32 *getHexArray(const UnicodeString &numbers, int32_t &arraySize) in getHexArray() argument
43 while((offset = numbers.indexOf(CH_COMMA, offset + 1)) >= 0) { in getHexArray()
54 while(u_isUWhiteSpace(numbers[start])) { in getHexArray()
58 while((end = numbers.indexOf(CH_COMMA, start)) >= 0) { in getHexArray()
59 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray()
66 while(u_isUWhiteSpace(numbers[start])) { in getHexArray()
72 end = numbers.length(); in getHexArray()
73 while(u_isUWhiteSpace(numbers[end - 1])) { in getHexArray()
77 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray()
84 static float *getFloatArray(const UnicodeString &numbers, int32_ argument
[all...]
H A Dletest.cpp445 le_uint32 *getHexArray(const UnicodeString &numbers, int32_t &arraySize) in getHexArray() argument
450 while((offset = numbers.indexOf(CH_COMMA, offset + 1)) >= 0) { in getHexArray()
461 while(u_isUWhiteSpace(numbers[start])) { in getHexArray()
465 while((end = numbers.indexOf(CH_COMMA, start)) >= 0) { in getHexArray()
466 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray()
473 while(u_isUWhiteSpace(numbers[start])) { in getHexArray()
479 end = numbers.length(); in getHexArray()
480 while(u_isUWhiteSpace(numbers[end - 1])) { in getHexArray()
484 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV); in getHexArray()
491 float *getFloatArray(const UnicodeString &numbers, int32_ argument
[all...]
/third_party/node/deps/openssl/openssl/util/perl/OpenSSL/
H A DOID.pm180 my @numbers =
200 return @numbers;
267 my @numbers = @_;
269 croak 'Invalid OID values: ( ', join(', ', @numbers), ' )'
270 if (scalar @numbers < 2
271 || $numbers[0] < 0 || $numbers[0] > 2
272 || $numbers[1] < 0 || $numbers[1] > 39);
274 my $first = shift(@numbers) * 4
[all...]
/third_party/openssl/util/perl/OpenSSL/
H A DOID.pm180 my @numbers =
200 return @numbers;
267 my @numbers = @_;
269 croak 'Invalid OID values: ( ', join(', ', @numbers), ' )'
270 if (scalar @numbers < 2
271 || $numbers[0] < 0 || $numbers[0] > 2
272 || $numbers[1] < 0 || $numbers[1] > 39);
274 my $first = shift(@numbers) * 4
[all...]
/third_party/icu/icu4c/source/samples/plurfmtsample/
H A Dplurfmtsample.cpp45 int numbers[] = {0, 1, 2, 3, 4, 5, 10, 100, 101, 102}; in PluralFormatExample() local
50 for (int i=0;i<sizeof(numbers)/sizeof(int);i++) { in PluralFormatExample()
53 Formattable argEn[]={Formattable(numbers[i]), Formattable(plfmtEn.format(numbers[i],status))}; in PluralFormatExample()
54 Formattable argSl[]={Formattable(numbers[i]), Formattable(plfmtSl.format(numbers[i],status))}; in PluralFormatExample()
57 u_printf("%-16d%-16S%-16S\n", numbers[i], msgEn.getTerminatedBuffer(),msgSl.getTerminatedBuffer()); in PluralFormatExample()
70 for (int i=0;i<sizeof(numbers)/sizeof(int);i++) { in PluralFormatExample()
72 Formattable arg[] = {numbers[i]}; in PluralFormatExample()
76 u_printf("%-16d%-16S%-16S\n", numbers[ in PluralFormatExample()
[all...]
/third_party/skia/third_party/externals/icu/source/samples/plurfmtsample/
H A Dplurfmtsample.cpp45 int numbers[] = {0, 1, 2, 3, 4, 5, 10, 100, 101, 102}; in PluralFormatExample() local
50 for (int i=0;i<sizeof(numbers)/sizeof(int);i++) { in PluralFormatExample()
53 Formattable argEn[]={Formattable(numbers[i]), Formattable(plfmtEn.format(numbers[i],status))}; in PluralFormatExample()
54 Formattable argSl[]={Formattable(numbers[i]), Formattable(plfmtSl.format(numbers[i],status))}; in PluralFormatExample()
57 u_printf("%-16d%-16S%-16S\n", numbers[i], msgEn.getTerminatedBuffer(),msgSl.getTerminatedBuffer()); in PluralFormatExample()
70 for (int i=0;i<sizeof(numbers)/sizeof(int);i++) { in PluralFormatExample()
72 Formattable arg[] = {numbers[i]}; in PluralFormatExample()
76 u_printf("%-16d%-16S%-16S\n", numbers[ in PluralFormatExample()
[all...]
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/finitestatematcher/
H A DDigitSequenceMatcherTest.java175 private static void assertMatches(RangeTree dfa, String... numbers) { in assertMatches() argument
176 checkRegex(dfa, true, numbers); in assertMatches()
180 assertMatcher(matcher, MATCHED, numbers); in assertMatches()
183 private static void assertNotMatches(RangeTree dfa, Result error, String... numbers) { in assertNotMatches() argument
185 checkRegex(dfa, false, numbers); in assertNotMatches()
188 assertMatcher(matcher, error, numbers); in assertNotMatches()
191 private static void checkRegex(RangeTree dfa, boolean expectMatch, String... numbers) { in checkRegex() argument
193 for (String number : numbers) { in checkRegex()
200 DigitSequenceMatcher matcher, Result expected, String... numbers) { in assertMatcher()
201 for (final String number : numbers) { in assertMatcher()
199 assertMatcher( DigitSequenceMatcher matcher, Result expected, String... numbers) assertMatcher() argument
[all...]
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/finitestatematcher/compiler/
H A DCompilerRegressionTest.java95 // numbers in the ranges. This avoids the risk of any bugs in both the matcher and compiler
111 Multimap<Result, DigitSequence> numbers = buildTestNumbers(ranges); in testExpectedMatcherBytesMatchRanges()
113 testExpectedMatch(tc.getName(), matcher, numbers); in testExpectedMatcherBytesMatchRanges()
115 testExpectedFailure(tc.getName(), matcher, numbers); in testExpectedMatcherBytesMatchRanges()
122 Multimap<Result, DigitSequence> numbers) { in testExpectedMatch()
124 for (DigitSequence s : numbers.get(expectedResult)) { in testExpectedMatch()
133 Multimap<Result, DigitSequence> numbers) { in testExpectedFailure()
135 for (DigitSequence s : numbers.get(expectedResult)) { in testExpectedFailure()
176 // Builds a map of numbers for the given RangeTree to test every branching point in the DFA.
178 // random numbers t
121 testExpectedMatch(String testName, DigitSequenceMatcher matcher, Multimap<Result, DigitSequence> numbers) testExpectedMatch() argument
132 testExpectedFailure(String testName, DigitSequenceMatcher matcher, Multimap<Result, DigitSequence> numbers) testExpectedFailure() argument
197 private final SetMultimap<Result, DigitSequence> numbers; global() field in CompilerRegressionTest.Visitor
201 Visitor(RangeSpecification sourcePath, SetMultimap<Result, DigitSequence> numbers, Set<DfaNode> visited) Visitor() argument
[all...]
/third_party/libphonenumber/migrator/src/main/java/com/google/phonenumbers/migrator/
H A DMigrationFactory.java81 * BCP-47 country code (e.g. 44) that numbers in the file belong to.
82 * All numbers in the file should belong to the same region.
86 List<String> numbers = Files.readAllLines(file); in createMigration()
90 numbers.forEach(num -> numberRanges.add(MigrationEntry.create(sanitizeNumberString(num), num))); in createMigration()
111 List<String> numbers = Files.readAllLines(file); in createCustomRecipeMigration()
115 numbers.forEach(num -> numberRanges.add(MigrationEntry.create(sanitizeNumberString(num), num))); in createCustomRecipeMigration()
125 public static MigrationJob createCustomRecipeMigration(ImmutableList<String> numbers, in createCustomRecipeMigration() argument
130 numbers.forEach(num -> numberRanges.add(MigrationEntry.create(sanitizeNumberString(num), num))); in createCustomRecipeMigration()
137 * Returns a MigrationJob instance for a given list of E.164 numbers. Method needed for file migrations using migrator
140 public static MigrationJob createMigration(ImmutableList<String> numbers, Strin argument
[all...]
/third_party/python/Lib/
H A Dfractions.py4 """Fraction, infinite-precision, rational numbers."""
8 import numbers namespace
38 class Fraction(numbers.Rational):
39 """This class implements rational numbers.
101 elif isinstance(numerator, numbers.Rational):
146 elif (isinstance(numerator, numbers.Rational) and
147 isinstance(denominator, numbers.Rational)):
175 if isinstance(f, numbers.Integral):
186 if isinstance(dec, numbers.Integral):
309 if isinstance(other, numbers
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
H A DConversionRates.java206 String[] numbers = numberWithDivision.split("/"); in forNumberWithDivision()
207 assert (numbers.length <= 2); in forNumberWithDivision()
209 if (numbers.length == 1) { in forNumberWithDivision()
210 return new BigDecimal(numbers[0]); in forNumberWithDivision()
213 return new BigDecimal(numbers[0]).divide(new BigDecimal(numbers[1]), MathContext.DECIMAL128); in forNumberWithDivision()
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
H A DTestUtil.java266 String[] numbers = verstr.split("\\."); in getJavaVersion()
267 if (numbers.length > 1) { in getJavaVersion()
268 majorVerStr = numbers[1]; in getJavaVersion()
271 String[] numbers = verstr.split("\\.|-"); in getJavaVersion()
272 if (numbers.length > 0) { in getJavaVersion()
273 majorVerStr = numbers[0]; in getJavaVersion()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/
H A DTestUtil.java267 String[] numbers = verstr.split("\\."); in getJavaVersion()
268 if (numbers.length > 1) { in getJavaVersion()
269 majorVerStr = numbers[1]; in getJavaVersion()
272 String[] numbers = verstr.split("\\.|-"); in getJavaVersion()
273 if (numbers.length > 0) { in getJavaVersion()
274 majorVerStr = numbers[0]; in getJavaVersion()
/third_party/python/Lib/urllib/
H A Drobotparser.py139 numbers = line[1].split('/')
141 if (len(numbers) == 2 and numbers[0].strip().isdigit()
142 and numbers[1].strip().isdigit()):
143 entry.req_rate = RequestRate(int(numbers[0]), int(numbers[1]))
/third_party/libphonenumber/cpp/test/phonenumbers/
H A Dtest_util.cc49 ostream& operator<<(ostream& os, const vector<PhoneNumber>& numbers) { in operator <<() argument
51 for (vector<PhoneNumber>::const_iterator it = numbers.begin(); in operator <<()
52 it != numbers.end(); ++it) { in operator <<()
/third_party/cJSON/tests/
H A Dcjson_add.c122 int numbers[] = {1, 2, 3}; in cjson_create_int_array_should_fail_on_allocation_failure() local
126 TEST_ASSERT_NULL(cJSON_CreateIntArray(numbers, 3)); in cjson_create_int_array_should_fail_on_allocation_failure()
133 float numbers[] = {1.0f, 2.0f, 3.0f}; in cjson_create_float_array_should_fail_on_allocation_failure() local
137 TEST_ASSERT_NULL(cJSON_CreateFloatArray(numbers, 3)); in cjson_create_float_array_should_fail_on_allocation_failure()
144 double numbers[] = {1.0, 2.0, 3.0}; in cjson_create_double_array_should_fail_on_allocation_failure() local
148 TEST_ASSERT_NULL(cJSON_CreateDoubleArray(numbers, 3)); in cjson_create_double_array_should_fail_on_allocation_failure()
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
H A DMetadataTableSchema.java40 * <li>{@link #NATIONAL_PREFIX}: The (optional) prefix used when dialling national numbers.
44 * <li>{@link #MOBILE_PORTABLE_REGIONS}: A list of regions in which mobile numbers are portable
47 * numbering plan (e.g. a prefix is defined, but does not have to be present when numbers are
93 public static DigitSequences of(DigitSequence... numbers) { in of() argument
94 return new DigitSequences(Arrays.asList(numbers)); in of()
97 private DigitSequences(Iterable<DigitSequence> numbers) { in DigitSequences() argument
98 super(numbers, ',', naturalOrder(), false); in DigitSequences()
114 * A list of prefixes used when dialling national numbers (e.g. "0" for "US"). If more than one
136 /** A comma separated list of regions in which mobile numbers are portable between carriers. */
144 /** The preferred prefix for specifying extensions to numbers (
[all...]
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/parse-number-fxx-test-data/script/
H A Dextract-numbery-strings.go22 // strings that look like floating point numbers, such as "123.456e789". The
55 var numbers = map[string]struct{}{} var
163 numbers[s] = struct{}{}
169 sortedNumbers := make([]string, 0, len(numbers))
170 for n := range numbers {
/third_party/googletest/googlemock/test/
H A Dgmock-matchers-containers_test.cc1208 const vector<int> numbers; in TEST() local
1209 EXPECT_THAT(numbers, WhenSortedBy(less<int>(), ElementsAre())); in TEST()
1210 EXPECT_THAT(numbers, Not(WhenSortedBy(less<int>(), ElementsAre(1)))); in TEST()
1214 vector<unsigned> numbers; in TEST() local
1215 numbers.push_back(3); in TEST()
1216 numbers.push_back(1); in TEST()
1217 numbers.push_back(2); in TEST()
1218 numbers.push_back(2); in TEST()
1219 EXPECT_THAT(numbers, in TEST()
1221 EXPECT_THAT(numbers, in TEST()
1237 const int numbers[] = {1, 3, 2, 4}; TEST() local
1271 const vector<int> numbers; TEST() local
1525 vector<int> numbers; TEST() local
1620 const int numbers[] = {1, 3, 6, 2, 4, 5}; TEST() local
1653 vector<int> numbers; TEST() local
1748 const int numbers[] = {1, 2, 3}; TEST() local
[all...]
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/text/pluralformat/
H A DPluralFormatSample.java46 final int[] numbers = {0, 1, 2, 3, 4, 5, 10, 100, 101, 102}; in PluralFormatExample()
51 for (int num : numbers) { in PluralFormatExample()
71 for (int num : numbers) { in PluralFormatExample()
/third_party/python/Lib/lib2to3/
H A Dfixer_base.py29 numbers = itertools.count(1) # For new_name() variable in BaseFix
34 # Lower numbers will be run first.
112 name = template + str(next(self.numbers))
156 self.numbers = itertools.count(1)

Completed in 15 milliseconds

12345