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

◆ DecodeDigit()

static int System.Globalization.IdnMapping.DecodeDigit ( char cp)
inlinestaticprivate

Definition at line 636 of file IdnMapping.cs.

637 {
638 if (cp >= '0' && cp <= '9')
639 {
640 return cp - 48 + 26;
641 }
642 if (cp >= 'a' && cp <= 'z')
643 {
644 return cp - 97;
645 }
646 if (cp >= 'A' && cp <= 'Z')
647 {
648 return cp - 65;
649 }
650 throw new ArgumentException(SR.Argument_IdnBadPunycode, "cp");
651 }

References System.SR.Argument_IdnBadPunycode.

Referenced by System.Globalization.IdnMapping.PunycodeDecode().