Example #1
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(byte[] data)
 {
     return(UrlEscapeUtility.ComputeLength(data));
 }
Example #2
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(byte[] data, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.ComputeLength(data, flags));
 }
Example #3
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(string data)
 {
     return(UrlEscapeUtility.ComputeLength(data));
 }
Example #4
0
 /// <summary>
 /// Compute length of the data after escaping its values
 /// </summary>
 /// <param name="data">The data to compute the escaped length for</param>
 /// <param name="encoding">The encoding to use to convert the string into a byte array</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the length of the escaped data</returns>
 public static long ComputeLength(string data, Encoding encoding, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.ComputeLength(data, encoding, flags));
 }
 /// <summary>
 /// URL escape for bytes
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <returns>Returns the escaped data</returns>
 public static byte[] EscapeToBytes(byte[] data)
 {
     return(UrlEscapeUtility.EscapeToBytes(data));
 }
 /// <summary>
 /// URL escape
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(string data, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.Escape(data, flags));
 }
 /// <summary>
 /// URL escape for bytes
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="encoding">The encoding to use to convert the string into a byte array</param>
 /// <returns>Returns the escaped data</returns>
 public static byte[] EscapeToBytes(string data, Encoding encoding)
 {
     return(UrlEscapeUtility.EscapeToBytes(data, encoding));
 }
 /// <summary>
 /// URL escape for bytes
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(byte[] data)
 {
     return(UrlEscapeUtility.Escape(data));
 }
 /// <summary>
 /// URL escape
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="encoding">The encoding to use</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(string data, Encoding encoding)
 {
     return(UrlEscapeUtility.Escape(data, encoding));
 }
 /// <summary>
 /// URL escape for bytes
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the escaped data</returns>
 public static byte[] EscapeToBytes(byte[] data, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.EscapeToBytes(data, flags));
 }
 /// <summary>
 /// URL escape
 /// </summary>
 /// <param name="data">The data to escape</param>
 /// <param name="encoding">The encoding to use to convert the string into a byte array</param>
 /// <param name="flags">The flags to modify the escaping behavior</param>
 /// <returns>Returns the escaped data</returns>
 public static string Escape(string data, Encoding encoding, UrlEscapeFlags flags)
 {
     return(UrlEscapeUtility.Escape(data, encoding, flags));
 }