Home
last modified time | relevance | path

Searched refs:hex_digit (Results 1 – 2 of 2) sorted by relevance

/external/image_io/includes/image_io/base/
Dbyte_data.h83 static int Hex2Decimal(char hex_digit) { in Hex2Decimal() argument
84 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()
/external/libchrome/base/json/
Djson_parser.cc503 int hex_digit = 0; in ConsumeStringRaw() local
504 if (!HexStringToInt(*escape_sequence, &hex_digit) || in ConsumeStringRaw()
505 !IsValidCharacter(hex_digit)) { in ConsumeStringRaw()
510 string.Append(hex_digit); in ConsumeStringRaw()