Home
last modified time | relevance | path

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

/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/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/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/clang/include/clang/Basic/
DVersionTuple.h156 bool tryParse(StringRef string);
DObjCRuntime.h315 bool tryParse(StringRef input);
/external/clang/lib/Frontend/
DCompilerInvocation.cpp1498 if (Opts.ObjCRuntime.tryParse(value)) in ParseLangArgs()
1606 if (VT.tryParse(A->getValue())) in ParseLangArgs()
/external/guice/lib/
Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/external/clang/lib/Driver/
DTools.cpp3123 if (MSVT.tryParse(MSCompatibilityVersion->getValue()) && D) in getMSVCVersion()
5567 if (runtime.tryParse(value)) { in AddObjCRuntimeArgs()
/external/owasp/sanitizer/distrib/lib/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/owasp/sanitizer/lib/guava-libraries/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/dagger2/lib/
Dauto-value-1.0.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/robolectric/v3/runtime/
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...