reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
8 llvm::yaml::isNumeric(copy);
include/llvm/Support/YAMLTraits.h 659 if (isNumeric(S))
tools/llvm-yaml-numeric-parser-fuzzer/yaml-numeric-parser-fuzzer.cpp 43 if (!Input.empty() && llvm::yaml::isNumeric(Input) != isNumericRegex(Input))
unittests/Support/YAMLIOTest.cpp2708 EXPECT_TRUE(isNumeric(".inf")); 2709 EXPECT_TRUE(isNumeric(".INF")); 2710 EXPECT_TRUE(isNumeric(".Inf")); 2711 EXPECT_TRUE(isNumeric("-.inf")); 2712 EXPECT_TRUE(isNumeric("+.inf")); 2714 EXPECT_TRUE(isNumeric(".nan")); 2715 EXPECT_TRUE(isNumeric(".NaN")); 2716 EXPECT_TRUE(isNumeric(".NAN")); 2718 EXPECT_TRUE(isNumeric("0")); 2719 EXPECT_TRUE(isNumeric("0.")); 2720 EXPECT_TRUE(isNumeric("0.0")); 2721 EXPECT_TRUE(isNumeric("-0.0")); 2722 EXPECT_TRUE(isNumeric("+0.0")); 2724 EXPECT_TRUE(isNumeric("12345")); 2725 EXPECT_TRUE(isNumeric("012345")); 2726 EXPECT_TRUE(isNumeric("+12.0")); 2727 EXPECT_TRUE(isNumeric(".5")); 2728 EXPECT_TRUE(isNumeric("+.5")); 2729 EXPECT_TRUE(isNumeric("-1.0")); 2731 EXPECT_TRUE(isNumeric("2.3e4")); 2732 EXPECT_TRUE(isNumeric("-2E+05")); 2733 EXPECT_TRUE(isNumeric("+12e03")); 2734 EXPECT_TRUE(isNumeric("6.8523015e+5")); 2736 EXPECT_TRUE(isNumeric("1.e+1")); 2737 EXPECT_TRUE(isNumeric(".0e+1")); 2739 EXPECT_TRUE(isNumeric("0x2aF3")); 2740 EXPECT_TRUE(isNumeric("0o01234567")); 2742 EXPECT_FALSE(isNumeric("not a number")); 2743 EXPECT_FALSE(isNumeric(".")); 2744 EXPECT_FALSE(isNumeric(".e+1")); 2745 EXPECT_FALSE(isNumeric(".1e")); 2746 EXPECT_FALSE(isNumeric(".1e+")); 2747 EXPECT_FALSE(isNumeric(".1e++1")); 2749 EXPECT_FALSE(isNumeric("ABCD")); 2750 EXPECT_FALSE(isNumeric("+0x2AF3")); 2751 EXPECT_FALSE(isNumeric("-0x2AF3")); 2752 EXPECT_FALSE(isNumeric("0x2AF3Z")); 2753 EXPECT_FALSE(isNumeric("0o012345678")); 2754 EXPECT_FALSE(isNumeric("0xZ")); 2755 EXPECT_FALSE(isNumeric("-0o012345678")); 2756 EXPECT_FALSE(isNumeric("000003A8229434B839616A25C16B0291F77A438B")); 2758 EXPECT_FALSE(isNumeric("")); 2759 EXPECT_FALSE(isNumeric(".")); 2760 EXPECT_FALSE(isNumeric(".e+1")); 2761 EXPECT_FALSE(isNumeric(".e+")); 2762 EXPECT_FALSE(isNumeric(".e")); 2763 EXPECT_FALSE(isNumeric("e1")); 2771 EXPECT_FALSE(isNumeric("3:25:45")); 2772 EXPECT_FALSE(isNumeric("+12,345")); 2773 EXPECT_FALSE(isNumeric("-inf")); 2774 EXPECT_FALSE(isNumeric("1,230.15"));