public static string?UrlPathEncode(string?str) => HttpEncoder.UrlPathEncode(str);
public static string?HtmlAttributeEncode(string?s) => HttpEncoder.HtmlAttributeEncode(s);
public static void HtmlAttributeEncode(string?s, TextWriter output) => HttpEncoder.HtmlAttributeEncode(s, output);
public static string HtmlDecode(string s) { return(HttpEncoder.HtmlDecode(s)); }
public static string?HtmlEncode(string?s) => HttpEncoder.HtmlEncode(s);
public static string?UrlDecode(string?str, Encoding e) => HttpEncoder.UrlDecode(str, e);
public static byte[]? UrlDecodeToBytes(byte[]?bytes, int offset, int count) => HttpEncoder.UrlDecode(bytes, offset, count);
public static string UrlDecode(byte[] bytes, int offset, int count, Encoding e) { return(HttpEncoder.UrlDecode(bytes, offset, count, e)); }
public static byte[] UrlDecodeToBytes(byte[] bytes, int offset, int count) { return(HttpEncoder.UrlDecode(bytes, offset, count)); }
public static string UrlEncodeUnicode(string str) { return(HttpEncoder.UrlEncodeUnicode(str, false /* ignoreAscii */)); }
public static string UrlDecode(string str, Encoding e) { return(HttpEncoder.UrlDecode(str, e)); }
public static byte[] UrlEncodeToBytes(byte[] bytes, int offset, int count) { return(HttpEncoder.UrlEncode(bytes, offset, count, true /* alwaysCreateNewReturnValue */)); }
public static string UrlPathEncode(string str) { return(HttpEncoder.UrlPathEncode(str)); }
public static string HtmlAttributeEncode(string s) { return(HttpEncoder.HtmlAttributeEncode(s)); }
public static byte[]? UrlEncodeToBytes(byte[]?bytes, int offset, int count) => HttpEncoder.UrlEncode(bytes, offset, count, alwaysCreateNewReturnValue: true);
public static string HtmlDecode(string s) => HttpEncoder.HtmlDecode(s);
public static string?UrlEncodeUnicode(string?str) => HttpEncoder.UrlEncodeUnicode(str);
public static void HtmlEncode(string s, TextWriter output) => HttpEncoder.HtmlEncode(s, output);
public static string?UrlDecode(byte[]?bytes, int offset, int count, Encoding e) => HttpEncoder.UrlDecode(bytes, offset, count, e);
public static string JavaScriptStringEncode(string value, bool addDoubleQuotes) { string encoded = HttpEncoder.JavaScriptStringEncode(value); return(addDoubleQuotes ? "\"" + encoded + "\"" : encoded); }
public static string JavaScriptStringEncode(string?value) => HttpEncoder.JavaScriptStringEncode(value);
public static byte[]? UrlEncodeToBytes(string str, Encoding e) { byte[] bytes = e.GetBytes(str); return(HttpEncoder.UrlEncode(bytes, 0, bytes.Length, alwaysCreateNewReturnValue: false)); }