private ParseHexDigit ( bool &success ) : char | ||
success | bool | |
return | char |
private char ParseHexDigit(out bool success)
{
int errorCount = Errors.Count;
char ch = default(char);
ch = MatchTerminalRange('0', '9', out success);
if (success) { ClearError(errorCount); return ch; }
ch = MatchTerminalRange('A', 'F', out success);
if (success) { ClearError(errorCount); return ch; }
ch = MatchTerminalRange('a', 'f', out success);
if (success) { ClearError(errorCount); return ch; }
return ch;
}