HexStringToInteger 446 rlz/lib/rlz_lib.cc return calculated_crc == HexStringToInteger(checksum.c_str()); HexStringToInteger 22 rlz/lib/string_utils.h int HexStringToInteger(const char* text); HexStringToInteger 28 rlz/lib/string_utils_unittest.cc TEST(StringUtilsUnittest, HexStringToInteger) { HexStringToInteger 30 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0, rlz_lib::HexStringToInteger(NULL)); HexStringToInteger 33 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0, rlz_lib::HexStringToInteger("")); HexStringToInteger 34 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0, rlz_lib::HexStringToInteger(" ")); HexStringToInteger 35 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0, rlz_lib::HexStringToInteger(" 0x ")); HexStringToInteger 36 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0, rlz_lib::HexStringToInteger(" 0x0 ")); HexStringToInteger 37 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0x12345, rlz_lib::HexStringToInteger("12345")); HexStringToInteger 38 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger("a34Ed0")); HexStringToInteger 39 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger("0xa34Ed0")); HexStringToInteger 40 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger(" 0xa34Ed0")); HexStringToInteger 41 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger("0xa34Ed0 ")); HexStringToInteger 42 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger(" 0xa34Ed0 ")); HexStringToInteger 43 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger(" 0x000a34Ed0 ")); HexStringToInteger 44 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0xa34Ed0, rlz_lib::HexStringToInteger(" 000a34Ed0 ")); HexStringToInteger 48 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0x12ff, rlz_lib::HexStringToInteger("12ffg")); HexStringToInteger 49 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0x12f, rlz_lib::HexStringToInteger("12f 121")); HexStringToInteger 50 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0x12f, rlz_lib::HexStringToInteger("12f 121")); HexStringToInteger 51 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0, rlz_lib::HexStringToInteger("g12f")); HexStringToInteger 52 rlz/lib/string_utils_unittest.cc EXPECT_EQ(0, rlz_lib::HexStringToInteger(" 0x0 \n"));