UrlEncodingTryDecode(ReadOnlySpan`1Char, String, Boolean, String) Method
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).
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static bool TryDecode(
ReadOnlySpan<char> value,
string? encodingWebName,
bool decodePlusChars,
out string?? decoded
)
Public Shared Function TryDecode (
value As ReadOnlySpan(Of Char),
encodingWebName As String,
decodePlusChars As Boolean,
<OutAttribute> ByRef decoded As String
) As Boolean
public:
static bool TryDecode(
ReadOnlySpan<wchar_t> value,
String^ encodingWebName,
bool decodePlusChars,
[OutAttribute] String^% decoded
)
static member TryDecode :
value : ReadOnlySpan<char> *
encodingWebName : string *
decodePlusChars : bool *
decoded : string byref -> bool
- value ReadOnlySpanChar
- The read-only character span to decode.
- encodingWebName String
- The standardized web name of the character set to use,
or null or Empty as a replacement for "utf-8".
- decodePlusChars Boolean
- true to decode PLUS characters ('+', U+002B)
as SPACE characters (' ', U+0020), or false to include the PLUS characters
unchanged in decoded.
- decoded String
- After the method completes successfully, contains a String that represents the decoded content of value.
Booleantrue if the decoding was successful, otherwise
false.