Пример #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));
 }