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

◆ CheckForUnicodeOrEscapedUnreserved()

static bool System.Uri.CheckForUnicodeOrEscapedUnreserved ( string data)
inlinestaticprivate

Definition at line 3768 of file Uri.cs.

3769 {
3770 for (int i = 0; i < data.Length; i++)
3771 {
3772 char c = data[i];
3773 if (c == '%')
3774 {
3775 if ((uint)(i + 2) < (uint)data.Length)
3776 {
3777 char c2 = UriHelper.DecodeHexChars(data[i + 1], data[i + 2]);
3778 if (c2 >= UriHelper.UnreservedTable.Length || UriHelper.UnreservedTable[c2])
3779 {
3780 return true;
3781 }
3782 i += 2;
3783 }
3784 }
3785 else if (c > '\u007f')
3786 {
3787 return true;
3788 }
3789 }
3790 return false;
3791 }

References System.UriHelper.DecodeHexChars(), and System.UriHelper.UnreservedTable.

Referenced by System.Uri.InitializeUri().