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

◆ ValidateStd3()

static void System.Globalization.IdnMapping.ValidateStd3 ( char c,
bool bNextToDot )
inlinestaticprivate

Definition at line 418 of file IdnMapping.cs.

419 {
420 if (c > ',')
421 {
422 switch (c)
423 {
424 default:
425 if ((c < '[' || c > '`') && (c < '{' || c > '\u007f') && !(c == '-' && bNextToDot))
426 {
427 return;
428 }
429 break;
430 case '/':
431 case ':':
432 case ';':
433 case '<':
434 case '=':
435 case '>':
436 case '?':
437 case '@':
438 break;
439 }
440 }
441 throw new ArgumentException(SR.Format(SR.Argument_IdnBadStd3, c), "c");
442 }

References System.SR.Argument_IdnBadStd3, and System.SR.Format().

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