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

◆ UnescapeDataString()

static string System.Uri.UnescapeDataString ( string stringToUnescape)
inlinestatic

Definition at line 4058 of file Uri.cs.

4059 {
4060 if (stringToUnescape == null)
4061 {
4062 throw new ArgumentNullException("stringToUnescape");
4063 }
4064 if (stringToUnescape.Length == 0)
4065 {
4066 return string.Empty;
4067 }
4068 int num = stringToUnescape.IndexOf('%');
4069 if (num == -1)
4070 {
4071 return stringToUnescape;
4072 }
4076 dest.Append(stringToUnescape.AsSpan(0, num));
4077 UriHelper.UnescapeString(stringToUnescape, num, stringToUnescape.Length, ref dest, '\uffff', '\uffff', '\uffff', UnescapeMode.Unescape | UnescapeMode.UnescapeAll, null, isQuery: false);
4078 return dest.ToString();
4079 }

References System.Runtime.Serialization.Dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.EnsureCapacity(), and System.UriHelper.UnescapeString().

Referenced by System.Net.FtpWebRequest.FtpWebRequest(), Terraria.Main.ConvertFromSafeArgument(), Terraria.Net.NetGroupInfo.ConvertFromSafeInfo(), System.Net.Http.HttpEnvironmentProxyCredentials.GetCredentialsFromString(), System.Uri.GetRelativeSerializationString(), and System.Net.Http.HttpEnvironmentProxy.GetUriFromString().