Click or drag to resize

Utf8StringTryParse(ReadOnlySpanByte, IFormatProvider, Utf8String) Method

Tries to parse a span of UTF-8 characters into a value.

Namespace: Ookii.Jumbo.IO
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public static bool TryParse(
	ReadOnlySpan<byte> utf8Text,
	IFormatProvider? provider,
	out Utf8String result
)

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