Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HexDigit()

static int System.Text.RegularExpressions.RegexParser.HexDigit ( char ch)
inlinestaticprivate

Definition at line 1333 of file RegexParser.cs.

1334 {
1335 int result;
1336 if ((uint)(result = ch - 48) <= 9u)
1337 {
1338 return result;
1339 }
1340 if ((uint)(result = ch - 97) <= 5u)
1341 {
1342 return result + 10;
1343 }
1344 if ((uint)(result = ch - 65) <= 5u)
1345 {
1346 return result + 10;
1347 }
1348 return -1;
1349 }

References System.ch.

Referenced by System.Text.RegularExpressions.RegexParser.ScanHex().