Home | History | Annotate | Download | only in strings

Lines Matching refs:HexDigitToInt

647 TEST(StringUtilTest, HexDigitToInt) {
648 EXPECT_EQ(0, HexDigitToInt('0'));
649 EXPECT_EQ(1, HexDigitToInt('1'));
650 EXPECT_EQ(2, HexDigitToInt('2'));
651 EXPECT_EQ(3, HexDigitToInt('3'));
652 EXPECT_EQ(4, HexDigitToInt('4'));
653 EXPECT_EQ(5, HexDigitToInt('5'));
654 EXPECT_EQ(6, HexDigitToInt('6'));
655 EXPECT_EQ(7, HexDigitToInt('7'));
656 EXPECT_EQ(8, HexDigitToInt('8'));
657 EXPECT_EQ(9, HexDigitToInt('9'));
658 EXPECT_EQ(10, HexDigitToInt('A'));
659 EXPECT_EQ(11, HexDigitToInt('B'));
660 EXPECT_EQ(12, HexDigitToInt('C'));
661 EXPECT_EQ(13, HexDigitToInt('D'));
662 EXPECT_EQ(14, HexDigitToInt('E'));
663 EXPECT_EQ(15, HexDigitToInt('F'));
666 EXPECT_EQ(10, HexDigitToInt('a'));
667 EXPECT_EQ(11, HexDigitToInt('b'));
668 EXPECT_EQ(12, HexDigitToInt('c'));
669 EXPECT_EQ(13, HexDigitToInt('d'));
670 EXPECT_EQ(14, HexDigitToInt('e'));
671 EXPECT_EQ(15, HexDigitToInt('f'));