Lines Matching refs:safe
490 E peek() @safe pure @nogc nothrow { return s[0]; } in EncoderFunctions()
491 E read() @safe pure @nogc nothrow { E t = s[0]; s = s[1..$]; return t; } in EncoderFunctions()
497 E peek() @safe pure @nogc nothrow { return s[$-1]; } in EncoderFunctions()
498 E read() @safe pure @nogc nothrow { E t = s[$-1]; s = s[0..$-1]; return t; } in EncoderFunctions()
506 void write(E c) @safe pure nothrow { s ~= c; } in EncoderFunctions()
511 void write(E c) @safe pure @nogc nothrow { array[0] = c; array = array[1..$]; } in EncoderFunctions()
530 void skip() @safe pure @nogc nothrow { skipViaRead(); } in EncoderFunctions()
536 dchar decode() @safe pure @nogc nothrow { return decodeViaRead(); } in EncoderFunctions()
542 dchar safeDecode() @safe pure @nogc nothrow { return safeDecodeViaRead(); } in EncoderFunctions()
548 dchar decodeReverse() @safe pure @nogc nothrow { return decodeReverseViaRead(); } in EncoderFunctions()
601 E[] encode(dchar c) @safe pure nothrow in EncoderFunctions()
608 void encode(dchar c, ref E[] array) @safe pure nothrow in EncoderFunctions()
620 void skip(ref const(E)[] s) @safe pure nothrow in EncoderFunctions()
638 dchar decodeReverse(ref const(E)[] s) @safe pure nothrow in EncoderFunctions()
762 bool canEncode(dchar c) @safe pure @nogc nothrow in GenericEncoder()
777 bool isValidCodeUnit(E c) @safe pure @nogc nothrow in GenericEncoder()
783 size_t encodedLength(dchar c) @safe pure @nogc nothrow in GenericEncoder()
838 @property EString replacementSequence() @safe pure @nogc nothrow in GenericEncoder()
860 @property string encodingName() @safe pure nothrow @nogc in encodingName()
865 bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
870 bool isValidCodeUnit(AsciiChar c) @safe pure nothrow @nogc in isValidCodeUnit()
875 size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
918 @property EString replacementSequence() @safe pure nothrow @nogc in replacementSequence()
943 @property string encodingName() @safe pure nothrow @nogc in encodingName()
948 bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
953 bool isValidCodeUnit(Latin1Char c) @safe pure nothrow @nogc in isValidCodeUnit()
958 size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
994 @property EString replacementSequence() @safe pure nothrow @nogc in replacementSequence()
1022 @property string encodingName() @safe pure nothrow @nogc in encodingName()
1102 @property string encodingName() @safe pure nothrow @nogc in encodingName()
1195 @property string encodingName() @safe pure nothrow @nogc in encodingName()
1290 @property string encodingName() @safe pure nothrow @nogc in encodingName()
1328 @property string encodingName() @safe pure nothrow @nogc in encodingName()
1333 bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
1338 bool isValidCodeUnit(char c) @safe pure nothrow @nogc in isValidCodeUnit()
1355 private int tails(char c) @safe pure nothrow @nogc in tails()
1365 size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
1477 @property EString replacementSequence() @safe pure nothrow @nogc in replacementSequence()
1494 @property string encodingName() @safe pure nothrow @nogc in encodingName()
1499 bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
1504 bool isValidCodeUnit(wchar c) @safe pure nothrow @nogc in isValidCodeUnit()
1509 size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
1574 @property EString replacementSequence() @safe pure nothrow @nogc in replacementSequence()
1591 @property string encodingName() @safe pure nothrow @nogc in encodingName()
1596 bool canEncode(dchar c) @safe pure @nogc nothrow in canEncode()
1601 bool isValidCodeUnit(dchar c) @safe pure @nogc nothrow in isValidCodeUnit()
1606 size_t encodedLength(dchar c) @safe pure @nogc nothrow in encodedLength()
1642 @property EString replacementSequence() @safe pure nothrow @nogc in replacementSequence()
1669 bool isValidCodePoint(dchar c) @safe pure nothrow @nogc in isValidCodePoint()
1689 @safe unittest
1718 @safe pure unittest
1738 @safe pure unittest
2233 @safe pure unittest
2555 class EncodingException : Exception { this(string msg) @safe pure { super(msg); } } in this()
2559 private this(string msg) @safe pure { super(msg); } in this()
2928 override string[] names() @safe pure nothrow in names()
2946 override string toString() @safe pure nothrow @nogc in toString()
2951 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
2956 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
2961 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
2967 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
2975 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
2983 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3014 override string[] names() @safe pure nothrow in names()
3030 override string toString() @safe pure nothrow @nogc in toString()
3035 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3040 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3045 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3051 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3059 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3067 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3094 override string[] names() @safe pure nothrow in names()
3106 override string toString() @safe pure nothrow @nogc in toString()
3111 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3116 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3121 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3127 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3135 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3143 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3166 override string[] names() @safe pure nothrow in names()
3174 override string toString() @safe pure nothrow @nogc in toString()
3179 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3184 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3189 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3195 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3203 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3211 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3234 override string[] names() @safe pure nothrow in names()
3242 override string toString() @safe pure nothrow @nogc in toString()
3247 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3252 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3257 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3263 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3271 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3279 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3302 override string[] names() @safe pure nothrow in names()
3310 override string toString() @safe pure nothrow @nogc in toString()
3315 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3320 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3325 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3331 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3339 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3347 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3439 override string[] names() @safe pure nothrow in names()
3447 override string toString() @safe pure nothrow @nogc in toString()
3452 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3457 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3462 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3468 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3476 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3484 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3511 override string[] names() @safe pure nothrow in names()
3516 override string toString() @safe pure nothrow @nogc in toString()
3521 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3526 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3531 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3537 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3550 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3563 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3607 override string[] names() @safe pure nothrow in names()
3612 override string toString() @safe pure nothrow @nogc in toString()
3617 override bool canEncode(dchar c) @safe pure nothrow @nogc in canEncode()
3622 override size_t encodedLength(dchar c) @safe pure nothrow @nogc in encodedLength()
3627 override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc in encode()
3633 override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc in decode()
3646 override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc in safeDecode()
3659 override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc in immutable()
3798 @safe pure unittest