Lines Matching refs:end_p
786 char* end_p; in CheckStrToInt() local
790 ASSERT_EQ(T(0), fn("123", &end_p, -1)); in CheckStrToInt()
795 ASSERT_EQ(T(0), fn("123", &end_p, 1)); in CheckStrToInt()
800 ASSERT_EQ(T(0), fn("123", &end_p, 37)); in CheckStrToInt()
804 ASSERT_EQ(T(0), fn("0xy", &end_p, 16)); in CheckStrToInt()
805 ASSERT_EQ('x', *end_p); in CheckStrToInt()
810 end_p = nullptr; in CheckStrToInt()
812 ASSERT_EQ(std::numeric_limits<T>::min(), fn(min.c_str(), &end_p, 0)); in CheckStrToInt()
814 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
817 end_p = nullptr; in CheckStrToInt()
819 ASSERT_EQ(std::numeric_limits<T>::min(), fn(min.c_str(), &end_p, 0)); in CheckStrToInt()
821 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
826 end_p = nullptr; in CheckStrToInt()
828 ASSERT_EQ(std::numeric_limits<T>::max(), fn(max.c_str(), &end_p, 0)); in CheckStrToInt()
830 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
833 end_p = nullptr; in CheckStrToInt()
835 ASSERT_EQ(std::numeric_limits<T>::max(), fn(max.c_str(), &end_p, 0)); in CheckStrToInt()
837 ASSERT_EQ('\0', *end_p); in CheckStrToInt()
841 end_p = nullptr; in CheckStrToInt()
844 fn("99999999999999999999999999999999999999999999999999999abc", &end_p, 0)); in CheckStrToInt()
846 ASSERT_STREQ("abc", end_p); in CheckStrToInt()
848 end_p = nullptr; in CheckStrToInt()
851 fn("-99999999999999999999999999999999999999999999999999999abc", &end_p, 0)); in CheckStrToInt()
853 ASSERT_STREQ("abc", end_p); in CheckStrToInt()