Annotate std/uni/package.d to please dlang/dmd#12520

This commit is contained in:
nordlow 2021-05-17 12:29:34 +02:00 committed by The Dlang Bot
parent 0db0187885
commit 88a4ebbc1f

View file

@ -5922,7 +5922,7 @@ pure:
return _idx == size_t.max;
}
@property DecompressedIntervals save() { return this; }
@property DecompressedIntervals save() return scope { return this; }
}
@safe pure nothrow @nogc unittest
@ -8563,7 +8563,7 @@ enum {
In cases where the string in question is already normalized,
it is returned unmodified and no memory allocation happens.
+/
inout(C)[] normalize(NormalizationForm norm=NFC, C)(inout(C)[] input)
inout(C)[] normalize(NormalizationForm norm=NFC, C)(return scope inout(C)[] input)
{
import std.algorithm.mutation : SwapStrategy;
import std.algorithm.sorting : sort;
@ -8750,7 +8750,7 @@ private size_t recompose(size_t start, dchar[] input, ubyte[] ccc) pure nothrow
// returns tuple of 2 indexes that delimit:
// normalized text, piece that needs normalization and
// the rest of input starting with stable code point
private auto splitNormalized(NormalizationForm norm, C)(const(C)[] input)
private auto splitNormalized(NormalizationForm norm, C)(scope const(C)[] input)
{
import std.typecons : tuple;
ubyte lastCC = 0;