mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 21:22:20 +03:00
Annotate std/uni/package.d to please dlang/dmd#12520
This commit is contained in:
parent
0db0187885
commit
88a4ebbc1f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue