// There's no API to get the number of bytes trimmed. Instead, call TrimStart / TrimEnd // and compare the length of the returned string against the length of the input string, // and this will give the number of bytes trimmed from the start + end. // // (Assume there are TrimStart / TrimEnd equivalents of Trim.) /* * SPLIT ROUTINES */ // Returns a ref struct that duck types an enumerator public static Utf8SpanSplitEnumerator Split( ReadOnlySpan <byte> inUtf8, UnicodeScalar splitScalar) => throw null;
// Trims the requested scalar value from the beginning and end of the input. // Returns a slice of the original input. public static ReadOnlySpan <byte> Trim( ReadOnlySpan <byte> inUtf8, UnicodeScalar trimScalar) => throw null;
public static int IndexOf(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar value, StringComparison stringComparison) => throw null;
public static ReadOnlyMemory <Char8> Trim(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar trimScalar) => throw null;
public static int IndexOf(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar value) => throw null;
public static void Contains(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar value, StringComparison comparisonType) => throw null;
public static void Contains(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar value) => throw null;
public static SequenceValidity PeekLastScalarUtf16(ReadOnlySpan <char> utf8Data, out UnicodeScalar scalar, int sequenceLength) => throw null;
public static SequenceValidity PeekFirstScalarUtf8(ReadOnlySpan <Char8> utf8Data, out UnicodeScalar scalar, int sequenceLength) => throw null;