Esempio n. 1
0
        // 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;
Esempio n. 2
0
 // 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;
Esempio n. 3
0
 public static int IndexOf(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar value, StringComparison stringComparison) => throw null;
Esempio n. 4
0
 public static ReadOnlyMemory <Char8> Trim(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar trimScalar) => throw null;
Esempio n. 5
0
 public static int IndexOf(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar value) => throw null;
Esempio n. 6
0
 public static void Contains(this ReadOnlyMemory <Char8> utf8Text, UnicodeScalar value, StringComparison comparisonType) => throw null;
Esempio n. 7
0
 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;