Searched refs:hex_digit (Results 1 – 2 of 2) sorted by relevance
83 static int Hex2Decimal(char hex_digit) { in Hex2Decimal() argument84 if (hex_digit >= '0' && hex_digit <= '9') { in Hex2Decimal()85 return static_cast<int>(hex_digit - '0'); in Hex2Decimal()86 } else if (hex_digit >= 'a' && hex_digit <= 'f') { in Hex2Decimal()87 return static_cast<int>(hex_digit - 'a' + 10); in Hex2Decimal()88 } else if (hex_digit >= 'A' && hex_digit <= 'F') { in Hex2Decimal()89 return static_cast<int>(hex_digit - 'A' + 10); in Hex2Decimal()
503 int hex_digit = 0; in ConsumeStringRaw() local504 if (!HexStringToInt(*escape_sequence, &hex_digit) || in ConsumeStringRaw()505 !IsValidCharacter(hex_digit)) { in ConsumeStringRaw()510 string.Append(hex_digit); in ConsumeStringRaw()