Home
last modified time | relevance | path

Searched refs:tryParse (Results 1 – 22 of 22) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DVersionTupleTest.cpp23 TEST(VersionTuple, tryParse) { in TEST() argument
26 EXPECT_FALSE(VT.tryParse("1")); in TEST()
29 EXPECT_FALSE(VT.tryParse("1.2")); in TEST()
32 EXPECT_FALSE(VT.tryParse("1.2.3")); in TEST()
35 EXPECT_FALSE(VT.tryParse("1.2.3.4")); in TEST()
38 EXPECT_TRUE(VT.tryParse("")); in TEST()
39 EXPECT_TRUE(VT.tryParse("1.")); in TEST()
40 EXPECT_TRUE(VT.tryParse("1.2.")); in TEST()
41 EXPECT_TRUE(VT.tryParse("1.2.3.")); in TEST()
42 EXPECT_TRUE(VT.tryParse("1.2.3.4.")); in TEST()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DIntsTest.java403 assertNull(Ints.tryParse("")); in testTryParse()
404 assertNull(Ints.tryParse("-")); in testTryParse()
405 assertNull(Ints.tryParse("+1")); in testTryParse()
406 assertNull(Ints.tryParse("9999999999999999")); in testTryParse()
408 Ints.tryParse(Long.toString(((long) GREATEST) + 1))); in testTryParse()
410 Ints.tryParse(Long.toString(((long) GREATEST) * 10))); in testTryParse()
412 Ints.tryParse(Long.toString(((long) LEAST) - 1))); in testTryParse()
414 Ints.tryParse(Long.toString(((long) LEAST) * 10))); in testTryParse()
415 assertNull("Max long", Ints.tryParse(Long.toString(Long.MAX_VALUE))); in testTryParse()
416 assertNull("Min long", Ints.tryParse(Long.toString(Long.MIN_VALUE))); in testTryParse()
[all …]
DLongsTest.java425 assertNull(Longs.tryParse("")); in testTryParse()
426 assertNull(Longs.tryParse("-")); in testTryParse()
427 assertNull(Longs.tryParse("+1")); in testTryParse()
428 assertNull(Longs.tryParse("999999999999999999999999")); in testTryParse()
430 Longs.tryParse(BigInteger.valueOf(MAX_VALUE).add(BigInteger.ONE).toString())); in testTryParse()
432 Longs.tryParse(BigInteger.valueOf(MAX_VALUE).multiply(BigInteger.TEN).toString())); in testTryParse()
434 Longs.tryParse(BigInteger.valueOf(MIN_VALUE).subtract(BigInteger.ONE).toString())); in testTryParse()
436 Longs.tryParse(BigInteger.valueOf(MIN_VALUE).multiply(BigInteger.TEN).toString())); in testTryParse()
437 assertNull(Longs.tryParse("\u0662\u06f3")); in testTryParse()
445 assertEquals(expected, Longs.tryParse(value)); in tryParseAndAssertEquals()
/external/guava/guava-tests/test/com/google/common/primitives/
DIntsTest.java475 assertNull(Ints.tryParse("")); in testTryParse()
476 assertNull(Ints.tryParse("-")); in testTryParse()
477 assertNull(Ints.tryParse("+1")); in testTryParse()
478 assertNull(Ints.tryParse("9999999999999999")); in testTryParse()
480 Ints.tryParse(Long.toString(((long) GREATEST) + 1))); in testTryParse()
482 Ints.tryParse(Long.toString(((long) GREATEST) * 10))); in testTryParse()
484 Ints.tryParse(Long.toString(((long) LEAST) - 1))); in testTryParse()
486 Ints.tryParse(Long.toString(((long) LEAST) * 10))); in testTryParse()
487 assertNull("Max long", Ints.tryParse(Long.toString(Long.MAX_VALUE))); in testTryParse()
488 assertNull("Min long", Ints.tryParse(Long.toString(Long.MIN_VALUE))); in testTryParse()
[all …]
DLongsTest.java458 assertNull(Longs.tryParse("")); in testTryParse()
459 assertNull(Longs.tryParse("-")); in testTryParse()
460 assertNull(Longs.tryParse("+1")); in testTryParse()
461 assertNull(Longs.tryParse("999999999999999999999999")); in testTryParse()
463 Longs.tryParse(BigInteger.valueOf(MAX_VALUE).add(BigInteger.ONE).toString())); in testTryParse()
465 Longs.tryParse(BigInteger.valueOf(MAX_VALUE).multiply(BigInteger.TEN).toString())); in testTryParse()
467 Longs.tryParse(BigInteger.valueOf(MIN_VALUE).subtract(BigInteger.ONE).toString())); in testTryParse()
469 Longs.tryParse(BigInteger.valueOf(MIN_VALUE).multiply(BigInteger.TEN).toString())); in testTryParse()
470 assertNull(Longs.tryParse("\u0662\u06f3")); in testTryParse()
478 assertEquals(expected, Longs.tryParse(value)); in tryParseAndAssertEquals()
DDoublesTest.java420 assertEquals(expected, Doubles.tryParse(input)); in checkTryParse()
427 assertEquals(Double.valueOf(expected), Doubles.tryParse(input)); in checkTryParse()
497 assertEquals(referenceTryParse(badInput), Doubles.tryParse(badInput)); in testTryParseFailures()
498 assertNull(Doubles.tryParse(badInput)); in testTryParseFailures()
DFloatsTest.java410 assertEquals(referenceTryParse(input), Floats.tryParse(input)); in checkTryParse()
415 assertEquals(Float.valueOf(expected), Floats.tryParse(input)); in checkTryParse()
483 assertEquals(referenceTryParse(badInput), Floats.tryParse(badInput)); in testTryParseFailures()
484 assertNull(Floats.tryParse(badInput)); in testTryParseFailures()
/external/clang/lib/Basic/
DObjCRuntime.cpp44 bool ObjCRuntime::tryParse(StringRef input) { in tryParse() function in ObjCRuntime
85 if (Version.tryParse(verString)) in tryParse()
DVersionTuple.cpp59 bool VersionTuple::tryParse(StringRef input) { in tryParse() function in VersionTuple
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
DInts.java626 public static Integer tryParse(String string) { in tryParse() method in Ints
627 return tryParse(string, 10); in tryParse()
652 @CheckForNull static Integer tryParse( in tryParse() method in Ints
/external/guava/guava/src/com/google/common/primitives/
DInts.java678 public static Integer tryParse(String string) { in tryParse() method in Ints
679 return tryParse(string, 10); in tryParse()
704 @CheckForNull static Integer tryParse( in tryParse() method in Ints
DFloats.java599 public static Float tryParse(String string) { in tryParse() method in Floats
DDoubles.java622 public static Double tryParse(String string) { in tryParse() method in Doubles
DLongs.java336 public static Long tryParse(String string) { in tryParse() method in Longs
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DVersionTuple.cpp61 bool VersionTuple::tryParse(StringRef input) { in tryParse() function in VersionTuple
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DVersionTuple.h147 bool tryParse(StringRef string);
/external/clang/include/clang/Basic/
DVersionTuple.h161 bool tryParse(StringRef string);
DObjCRuntime.h332 bool tryParse(StringRef input);
/external/python/setuptools/setuptools/_vendor/
Dpyparsing.py1419 def tryParse( self, instring, loc ): member in ParserElement
1427 self.tryParse(instring, loc)
3430 loc2 = e.tryParse( instring, loc )
3632 tmpLoc = e.tryParse( instring, tmpLoc )
3773 self.expr.tryParse( instring, loc )
3823 try_not_ender = self.not_ender.tryParse
4059 self_ignoreExpr_tryParse = self.ignoreExpr.tryParse if self.ignoreExpr is not None else None
/external/python/setuptools/pkg_resources/_vendor/
Dpyparsing.py1419 def tryParse( self, instring, loc ): member in ParserElement
1427 self.tryParse(instring, loc)
3430 loc2 = e.tryParse( instring, loc )
3632 tmpLoc = e.tryParse( instring, tmpLoc )
3773 self.expr.tryParse( instring, loc )
3823 try_not_ender = self.not_ender.tryParse
4059 self_ignoreExpr_tryParse = self.ignoreExpr.tryParse if self.ignoreExpr is not None else None
/external/clang/lib/Frontend/
DCompilerInvocation.cpp1726 if (Opts.ObjCRuntime.tryParse(value)) in ParseLangArgs()
1834 if (VT.tryParse(A->getValue())) in ParseLangArgs()
/external/clang/lib/Driver/
DTools.cpp3468 if (MSVT.tryParse(MSCompatibilityVersion->getValue()) && D) in getMSVCVersion()
6076 if (runtime.tryParse(value)) { in AddObjCRuntimeArgs()