URLDecode() public static method

public static URLDecode ( byte toEncode ) : byte[]
toEncode byte
return byte[]
コード例 #1
0
 public static string UnEscapeURL(string s, [UnityEngine.Internal.DefaultValue("System.Text.Encoding.UTF8")] Encoding e)
 {
     if (s == null)
     {
         return(null);
     }
     if ((s.IndexOf('%') == -1) && (s.IndexOf('+') == -1))
     {
         return(s);
     }
     return(WWWTranscoder.URLDecode(s, e));
 }
コード例 #2
0
 /// <summary>
 ///   <para>Converts URL-friendly escape sequences back to normal text.</para>
 /// </summary>
 /// <param name="s">A string containing escaped characters.</param>
 /// <param name="e">The text encoding to use.</param>
 public static string UnEscapeURL(string s, [DefaultValue("System.Text.Encoding.UTF8")] Encoding e)
 {
     if (s == null)
     {
         return((string)null);
     }
     if (s.IndexOf('%') == -1 && s.IndexOf('+') == -1)
     {
         return(s);
     }
     return(WWWTranscoder.URLDecode(s, e));
 }
コード例 #3
0
ファイル: WWW.cs プロジェクト: yaoya/UnityDecompiled
        public static string UnEscapeURL(string s, Encoding e)
        {
            string result;

            if (s == null)
            {
                result = null;
            }
            else if (s.IndexOf('%') == -1 && s.IndexOf('+') == -1)
            {
                result = s;
            }
            else
            {
                result = WWWTranscoder.URLDecode(s, e);
            }
            return(result);
        }
コード例 #4
0
        public static string UnEscapeURL(string s, [UnityEngine.Internal.DefaultValue("System.Text.Encoding.UTF8")] Encoding e)
        {
            string result;

            if (s == null)
            {
                result = null;
            }
            else if (s.IndexOf('%') == -1 && s.IndexOf('+') == -1)
            {
                result = s;
            }
            else
            {
                result = WWWTranscoder.URLDecode(s, e);
            }
            return(result);
        }
コード例 #5
0
 public static string URLDecode(string toEncode)
 {
     return(WWWTranscoder.URLDecode(toEncode, Encoding.UTF8));
 }
コード例 #6
0
        public static string URLDecode(string toEncode)
        {
            Encoding uTF = Encoding.UTF8;

            return(WWWTranscoder.URLDecode(toEncode, uTF));
        }