Click or drag to resize

Utf8StringParse(ReadOnlySpanByte, IFormatProvider) Method

Parses 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 Utf8String Parse(
	ReadOnlySpan<byte> utf8Text,
	IFormatProvider? provider
)

Parameters

utf8Text  ReadOnlySpanByte
The span of UTF-8 characters to parse.
provider  IFormatProvider
An object that provides culture-specific formatting information about utf8Text.

Return Value

Utf8String
The result of parsing utf8Text.

Implements

IUtf8SpanParsable.Parse(ReadOnlySpanByte, IFormatProvider)
Exceptions
ExceptionCondition
FormatExceptionutf8Text is not in the correct format.
OverflowExceptionutf8Text is not representable by TSelf.
See Also