Click or drag to resize

Utf8String.TryParse(ReadOnlySpan<Byte>, 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  ReadOnlySpan<Byte>
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
true if utf8Text was successfully parsed; otherwise, false.

Implements

IUtf8SpanParsable.TryParse(ReadOnlySpan<Byte>, IFormatProvider, UTP)
See Also