示例#1
0
 public static string?UrlPathEncode(string?str) => HttpEncoder.UrlPathEncode(str);
示例#2
0
 public static string?HtmlAttributeEncode(string?s) => HttpEncoder.HtmlAttributeEncode(s);
示例#3
0
 public static void HtmlAttributeEncode(string?s, TextWriter output) => HttpEncoder.HtmlAttributeEncode(s, output);
示例#4
0
 public static string HtmlDecode(string s)
 {
     return(HttpEncoder.HtmlDecode(s));
 }
示例#5
0
 public static string?HtmlEncode(string?s) => HttpEncoder.HtmlEncode(s);
示例#6
0
 public static string?UrlDecode(string?str, Encoding e) => HttpEncoder.UrlDecode(str, e);
示例#7
0
 public static byte[]? UrlDecodeToBytes(byte[]?bytes, int offset, int count) => HttpEncoder.UrlDecode(bytes, offset, count);
示例#8
0
 public static string UrlDecode(byte[] bytes, int offset, int count, Encoding e)
 {
     return(HttpEncoder.UrlDecode(bytes, offset, count, e));
 }
示例#9
0
 public static byte[] UrlDecodeToBytes(byte[] bytes, int offset, int count)
 {
     return(HttpEncoder.UrlDecode(bytes, offset, count));
 }
示例#10
0
 public static string UrlEncodeUnicode(string str)
 {
     return(HttpEncoder.UrlEncodeUnicode(str, false /* ignoreAscii */));
 }
示例#11
0
 public static string UrlDecode(string str, Encoding e)
 {
     return(HttpEncoder.UrlDecode(str, e));
 }
示例#12
0
 public static byte[] UrlEncodeToBytes(byte[] bytes, int offset, int count)
 {
     return(HttpEncoder.UrlEncode(bytes, offset, count, true /* alwaysCreateNewReturnValue */));
 }
示例#13
0
 public static string UrlPathEncode(string str)
 {
     return(HttpEncoder.UrlPathEncode(str));
 }
示例#14
0
 public static string HtmlAttributeEncode(string s)
 {
     return(HttpEncoder.HtmlAttributeEncode(s));
 }
示例#15
0
 public static byte[]? UrlEncodeToBytes(byte[]?bytes, int offset, int count) => HttpEncoder.UrlEncode(bytes, offset, count, alwaysCreateNewReturnValue: true);
示例#16
0
 public static string HtmlDecode(string s) => HttpEncoder.HtmlDecode(s);
示例#17
0
 public static string?UrlEncodeUnicode(string?str) => HttpEncoder.UrlEncodeUnicode(str);
示例#18
0
 public static void HtmlEncode(string s, TextWriter output) => HttpEncoder.HtmlEncode(s, output);
示例#19
0
 public static string?UrlDecode(byte[]?bytes, int offset, int count, Encoding e) =>
 HttpEncoder.UrlDecode(bytes, offset, count, e);
示例#20
0
        public static string JavaScriptStringEncode(string value, bool addDoubleQuotes)
        {
            string encoded = HttpEncoder.JavaScriptStringEncode(value);

            return(addDoubleQuotes ? "\"" + encoded + "\"" : encoded);
        }
示例#21
0
 public static string JavaScriptStringEncode(string?value) => HttpEncoder.JavaScriptStringEncode(value);
示例#22
0
 public static byte[]? UrlEncodeToBytes(string str, Encoding e)
 {
     byte[] bytes = e.GetBytes(str);
     return(HttpEncoder.UrlEncode(bytes, 0, bytes.Length, alwaysCreateNewReturnValue: false));
 }