UrlEncoding Class

Static class that provides methods for handling URL encoding (RFC 3986).

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class UrlEncoding
Inheritance
Object    UrlEncoding

Methods

Encode(ReadOnlySpanByte) Converts a read-only span of Bytes to its url-encoded representation.
Encode(ReadOnlySpanChar) Converts a read-only character span to its escaped representation.
Encode(String) Converts a String to its escaped representation.
TryDecode(ReadOnlySpanChar, Boolean, String)Tries to decode a URL-encoded read-only character span using the UTF-8 character set and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as SPACE characters (' ', U+0020).
TryDecode(String, Boolean, String)Tries to decode a URL-encoded String using the UTF-8 character set and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as SPACE characters (' ', U+0020).
TryDecode(ReadOnlySpanChar, Int32, Boolean, String)Tries to decode a URL-encoded read-only character span using a specified code page and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as SPACE characters (' ', U+0020).
TryDecode(ReadOnlySpanChar, String, Boolean, String)Tries to decode a URL-encoded read-only character span using a specified character set and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as SPACE characters (' ', U+0020).
TryDecode(String, Int32, Boolean, String)Tries to decode a URL-encoded String using a specified code page and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as SPACE characters (' ', U+0020).
TryDecode(String, String, Boolean, String)Tries to decode a URL-encoded String using a specified character set and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as SPACE characters (' ', U+0020).
TryDecodeToBytes(ReadOnlySpanChar, Boolean, Byte)Tries to decode a URL-encoded read-only character span to a Byte array and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded as 0x20 (SPACE ' ').
TryDecodeToBytes(String, Boolean, Byte)Tries to decode a URL-encoded String to a Byte array and allows to specify whether or not PLUS characters ('+', U+002B) should be decoded to 0x20 (SPACE ' ').

Fields

EncodedLengthFactorFactor by which the number of bytes to be encoded is multiplied to estimate the length of the encoded output.

See Also