 | Utf8StringTryParse(ReadOnlySpanByte, IFormatProvider, Utf8String) Method |
Tries to parse a span of UTF-8 characters into a value.
Namespace: Ookii.Jumbo.IOAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static bool TryParse(
ReadOnlySpan<byte> utf8Text,
IFormatProvider? provider,
out Utf8String result
)
Public Shared Function TryParse (
utf8Text As ReadOnlySpan(Of Byte),
provider As IFormatProvider,
<OutAttribute> ByRef result As Utf8String
) As Boolean
public:
static bool TryParse(
ReadOnlySpan<unsigned char> utf8Text,
IFormatProvider^ provider,
[OutAttribute] Utf8String^% result
)
static member TryParse :
utf8Text : ReadOnlySpan<byte> *
provider : IFormatProvider *
result : Utf8String byref -> bool
Parameters
- utf8Text ReadOnlySpanByte
- The span of UTF-8 characters to parse.
- provider IFormatProvider
- An object that provides culture-specific formatting information about utf8Text.
- result Utf8String
- On return, contains the result of successfully parsing utf8Text or an undefined value on failure.
Return Value
Boolean if
utf8Text was successfully parsed; otherwise,
.
Implements
IUtf8SpanParsable.TryParse(ReadOnlySpanByte, IFormatProvider, UTP)
See Also