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

◆ CheckInvalidIdnCharacters()

static unsafe void System.Globalization.IdnMapping.CheckInvalidIdnCharacters ( char * s,
int count,
uint flags,
string paramName )
inlinestaticprivate

Definition at line 765 of file IdnMapping.cs.

766 {
767 if ((flags & 2u) != 0)
768 {
769 return;
770 }
771 for (int i = 0; i < count; i++)
772 {
773 char c = s[i];
774 if (c <= '\u001f' || c == '\u007f')
775 {
776 throw new ArgumentException(SR.Argument_IdnIllegalName, paramName);
777 }
778 }
779 }

References System.SR.Argument_IdnIllegalName, System.count, and System.s.

Referenced by System.Globalization.IdnMapping.IcuGetAsciiCore(), and System.Globalization.IdnMapping.IcuGetUnicodeCore().