Lines Matching refs:end_p
828 char* end_p; in CheckStrToInt() local
832 ASSERT_EQ(T(0), fn("123", &end_p, -1)); in CheckStrToInt()
837 ASSERT_EQ(T(0), fn("123", &end_p, 1)); in CheckStrToInt()
842 ASSERT_EQ(T(0), fn("123", &end_p, 37)); in CheckStrToInt()
846 ASSERT_EQ(T(-123), fn("-123", &end_p, 10)); in CheckStrToInt()
847 ASSERT_EQ(T(123), fn("+123", &end_p, 10)); in CheckStrToInt()
850 ASSERT_EQ(T(0), fn("0b", &end_p, 2)); in CheckStrToInt()
851 ASSERT_EQ('b', *end_p); in CheckStrToInt()
854 ASSERT_EQ(T(0b101), fn("0b101", &end_p, 0)); in CheckStrToInt()
855 ASSERT_EQ(T(0b101), fn("0B101", &end_p, 0)); in CheckStrToInt()
858 ASSERT_EQ(T(0), fn("0xy", &end_p, 16)); in CheckStrToInt()
859 ASSERT_EQ('x', *end_p); in CheckStrToInt()
862 ASSERT_EQ(T(0xab), fn("0xab", &end_p, 0)); in CheckStrToInt()
863 ASSERT_EQ(T(0xab), fn("0Xab", &end_p, 0)); in CheckStrToInt()
864 ASSERT_EQ(T(0xab), fn("0xAB", &end_p, 0)); in CheckStrToInt()
865 ASSERT_EQ(T(0xab), fn("0XAB", &end_p, 0)); in CheckStrToInt()
866 ASSERT_EQ(T(0xab), fn("0xAb", &end_p, 0)); in CheckStrToInt()
867 ASSERT_EQ(T(0xab), fn("0XAb", &end_p, 0)); in CheckStrToInt()
870 ASSERT_EQ(T(0666), fn("0666", &end_p, 0)); in CheckStrToInt()
875 end_p = nullptr; in CheckStrToInt()
877 ASSERT_EQ(std::numeric_limits<T>::min(), fn(min.c_str(), &end_p, 0)); in CheckStrToInt()
879 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
882 end_p = nullptr; in CheckStrToInt()
884 ASSERT_EQ(std::numeric_limits<T>::min(), fn(min.c_str(), &end_p, 0)); in CheckStrToInt()
886 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
891 end_p = nullptr; in CheckStrToInt()
893 ASSERT_EQ(std::numeric_limits<T>::max(), fn(max.c_str(), &end_p, 0)); in CheckStrToInt()
895 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
898 end_p = nullptr; in CheckStrToInt()
900 ASSERT_EQ(std::numeric_limits<T>::max(), fn(max.c_str(), &end_p, 0)); in CheckStrToInt()
902 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
906 ASSERT_EQ(static_cast<T>(123), fn("123abc", &end_p, 0)); in CheckStrToInt()
908 ASSERT_STREQ("abc", end_p); in CheckStrToInt()
912 end_p = nullptr; in CheckStrToInt()
915 fn("99999999999999999999999999999999999999999999999999999abc", &end_p, 0)); in CheckStrToInt()
917 ASSERT_STREQ("abc", end_p); in CheckStrToInt()
919 end_p = nullptr; in CheckStrToInt()
922 fn("-99999999999999999999999999999999999999999999999999999abc", &end_p, 0)); in CheckStrToInt()
924 ASSERT_STREQ("abc", end_p); in CheckStrToInt()