UrlEncodingTryDecode(ReadOnlySpan`1Char, Boolean, String) Method
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).
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static bool TryDecode(
ReadOnlySpan<char> value,
bool decodePlusChars,
out string?? decoded
)
Public Shared Function TryDecode (
value As ReadOnlySpan(Of Char),
decodePlusChars As Boolean,
<OutAttribute> ByRef decoded As String
) As Boolean
public:
static bool TryDecode(
ReadOnlySpan<wchar_t> value,
bool decodePlusChars,
[OutAttribute] String^% decoded
)
static member TryDecode :
value : ReadOnlySpan<char> *
decodePlusChars : bool *
decoded : string byref -> bool
- value ReadOnlySpanChar
- The read-only character span to decode.
- 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.