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

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