Replace "Ditto." with "ditto"

ddox doesn't recognize "Ditto.".
This commit is contained in:
Eugen Wissner 2017-09-22 04:08:50 +02:00
parent 4612d5eb6d
commit ee48c25328
16 changed files with 130 additions and 130 deletions

View File

@ -177,7 +177,7 @@ struct Array(T)
/// The range types for $(D_PSYMBOL Array). /// The range types for $(D_PSYMBOL Array).
alias Range = .Range!Array; alias Range = .Range!Array;
/// Ditto. /// ditto
alias ConstRange = .Range!(const Array); alias ConstRange = .Range!(const Array);
private size_t length_; private size_t length_;
@ -245,7 +245,7 @@ struct Array(T)
insertBack(init[]); insertBack(init[]);
} }
/// Ditto. /// ditto
this(R)(R init, shared Allocator allocator = defaultAllocator) @trusted this(R)(R init, shared Allocator allocator = defaultAllocator) @trusted
if (is(R == Array)) if (is(R == Array))
{ {
@ -313,14 +313,14 @@ struct Array(T)
length_ = len; length_ = len;
} }
/// Ditto. /// ditto
this(const size_t len, shared Allocator allocator = defaultAllocator) this(const size_t len, shared Allocator allocator = defaultAllocator)
{ {
this(allocator); this(allocator);
length = len; length = len;
} }
/// Ditto. /// ditto
this(shared Allocator allocator) this(shared Allocator allocator)
in in
{ {
@ -416,7 +416,7 @@ struct Array(T)
return length_; return length_;
} }
/// Ditto. /// ditto
size_t opDollar() const size_t opDollar() const
{ {
return length; return length;
@ -704,7 +704,7 @@ struct Array(T)
return 1; return 1;
} }
/// Ditto. /// ditto
size_t insertBack(R)(ref R el) @trusted size_t insertBack(R)(ref R el) @trusted
if (isImplicitlyConvertible!(R, T)) if (isImplicitlyConvertible!(R, T))
{ {
@ -714,7 +714,7 @@ struct Array(T)
return 1; return 1;
} }
/// Ditto. /// ditto
size_t insertBack(R)(R el) size_t insertBack(R)(R el)
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -732,13 +732,13 @@ struct Array(T)
return retLength; return retLength;
} }
/// Ditto. /// ditto
size_t insertBack(size_t R)(T[R] el) size_t insertBack(size_t R)(T[R] el)
{ {
return insertBack!(T[])(el[]); return insertBack!(T[])(el[]);
} }
/// Ditto. /// ditto
alias insert = insertBack; alias insert = insertBack;
/// ///
@ -813,7 +813,7 @@ struct Array(T)
return inserted; return inserted;
} }
/// Ditto. /// ditto
size_t insertAfter(size_t R)(Range r, T[R] el) size_t insertAfter(size_t R)(Range r, T[R] el)
in in
{ {
@ -826,7 +826,7 @@ struct Array(T)
return insertAfter!(T[])(r, el[]); return insertAfter!(T[])(r, el[]);
} }
/// Ditto. /// ditto
size_t insertAfter(R)(Range r, auto ref R el) size_t insertAfter(R)(Range r, auto ref R el)
if (isImplicitlyConvertible!(R, T)) if (isImplicitlyConvertible!(R, T))
in in
@ -853,7 +853,7 @@ struct Array(T)
return 1; return 1;
} }
/// Ditto. /// ditto
size_t insertBefore(R)(Range r, R el) size_t insertBefore(R)(Range r, R el)
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -869,7 +869,7 @@ struct Array(T)
return insertAfter(Range(this, this.data, r.begin), el); return insertAfter(Range(this, this.data, r.begin), el);
} }
/// Ditto. /// ditto
size_t insertBefore(size_t R)(Range r, T[R] el) size_t insertBefore(size_t R)(Range r, T[R] el)
in in
{ {
@ -882,7 +882,7 @@ struct Array(T)
return insertBefore!(T[])(r, el[]); return insertBefore!(T[])(r, el[]);
} }
/// Ditto. /// ditto
size_t insertBefore(R)(Range r, auto ref R el) size_t insertBefore(R)(Range r, auto ref R el)
if (isImplicitlyConvertible!(R, T)) if (isImplicitlyConvertible!(R, T))
in in
@ -998,7 +998,7 @@ struct Array(T)
return opIndex(pos) = value; return opIndex(pos) = value;
} }
/// Ditto. /// ditto
Range opIndexAssign(E : T)(auto ref E value) Range opIndexAssign(E : T)(auto ref E value)
{ {
return opSliceAssign(value, 0, length); return opSliceAssign(value, 0, length);
@ -1028,7 +1028,7 @@ struct Array(T)
return opSliceAssign!R(value, 0, length); return opSliceAssign!R(value, 0, length);
} }
/// Ditto. /// ditto
Range opIndexAssign(Range value) Range opIndexAssign(Range value)
{ {
return opSliceAssign(value, 0, length); return opSliceAssign(value, 0, length);
@ -1077,7 +1077,7 @@ struct Array(T)
return typeof(return)(this, this.data, this.data + length); return typeof(return)(this, this.data, this.data + length);
} }
/// Ditto. /// ditto
ConstRange opIndex() const @trusted ConstRange opIndex() const @trusted
{ {
return typeof(return)(this, this.data, this.data + length); return typeof(return)(this, this.data, this.data + length);
@ -1110,13 +1110,13 @@ struct Array(T)
return equal(this.data[0 .. length], that.data[0 .. that.length]); return equal(this.data[0 .. length], that.data[0 .. that.length]);
} }
/// Ditto. /// ditto
bool opEquals()(auto ref const typeof(this) that) const @trusted bool opEquals()(auto ref const typeof(this) that) const @trusted
{ {
return equal(this.data[0 .. length], that.data[0 .. that.length]); return equal(this.data[0 .. length], that.data[0 .. that.length]);
} }
/// Ditto. /// ditto
bool opEquals(Range that) bool opEquals(Range that)
{ {
return equal(opIndex(), that); return equal(opIndex(), that);
@ -1233,7 +1233,7 @@ struct Array(T)
return typeof(return)(this, this.data + i, this.data + j); return typeof(return)(this, this.data + i, this.data + j);
} }
/// Ditto. /// ditto
ConstRange opSlice(const size_t i, const size_t j) const @trusted ConstRange opSlice(const size_t i, const size_t j) const @trusted
in in
{ {
@ -1317,7 +1317,7 @@ struct Array(T)
return opSlice(i, j); return opSlice(i, j);
} }
/// Ditto. /// ditto
Range opSliceAssign(R : T)(auto ref R value, const size_t i, const size_t j) Range opSliceAssign(R : T)(auto ref R value, const size_t i, const size_t j)
@trusted @trusted
in in
@ -1331,7 +1331,7 @@ struct Array(T)
return opSlice(i, j); return opSlice(i, j);
} }
/// Ditto. /// ditto
Range opSliceAssign(Range value, const size_t i, const size_t j) @trusted Range opSliceAssign(Range value, const size_t i, const size_t j) @trusted
in in
{ {
@ -1416,7 +1416,7 @@ struct Array(T)
return this = that[]; return this = that[];
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(R)(R that) @trusted ref typeof(this) opAssign(R)(R that) @trusted
if (is(R == Array)) if (is(R == Array))
{ {

View File

@ -100,7 +100,7 @@ struct ReadBuffer(T = ubyte)
buffer_ = cast(T[]) allocator_.allocate(size * T.sizeof); buffer_ = cast(T[]) allocator_.allocate(size * T.sizeof);
} }
/// Ditto. /// ditto
this(shared Allocator allocator) this(shared Allocator allocator)
in in
{ {
@ -143,7 +143,7 @@ struct ReadBuffer(T = ubyte)
return length_ - start; return length_ - start;
} }
/// Ditto. /// ditto
alias opDollar = length; alias opDollar = length;
/** /**
@ -395,7 +395,7 @@ struct WriteBuffer(T = ubyte)
} }
} }
/// Ditto. /// ditto
alias opDollar = length; alias opDollar = length;
/// ///

View File

@ -100,7 +100,7 @@ struct SList(T)
/// The range types for $(D_PSYMBOL SList). /// The range types for $(D_PSYMBOL SList).
alias Range = SRange!SList; alias Range = SRange!SList;
/// Ditto. /// ditto
alias ConstRange = SRange!(const SList); alias ConstRange = SRange!(const SList);
private alias Entry = SEntry!T; private alias Entry = SEntry!T;
@ -184,7 +184,7 @@ struct SList(T)
assert(l.empty); assert(l.empty);
} }
/// Ditto. /// ditto
this(const size_t len, shared Allocator allocator = defaultAllocator) this(const size_t len, shared Allocator allocator = defaultAllocator)
{ {
this(len, T.init, allocator); this(len, T.init, allocator);
@ -198,7 +198,7 @@ struct SList(T)
assert(l.front == 0); assert(l.front == 0);
} }
/// Ditto. /// ditto
this(shared Allocator allocator) this(shared Allocator allocator)
in in
{ {
@ -232,7 +232,7 @@ struct SList(T)
this(init[], allocator); this(init[], allocator);
} }
/// Ditto. /// ditto
this(R)(R init, shared Allocator allocator = defaultAllocator) @trusted this(R)(R init, shared Allocator allocator = defaultAllocator) @trusted
if (is(R == SList)) if (is(R == SList))
{ {
@ -356,7 +356,7 @@ struct SList(T)
return moveEntry(this.head, el); return moveEntry(this.head, el);
} }
/// Ditto. /// ditto
size_t insertFront(R)(ref R el) @trusted size_t insertFront(R)(ref R el) @trusted
if (isImplicitlyConvertible!(R, T)) if (isImplicitlyConvertible!(R, T))
{ {
@ -378,7 +378,7 @@ struct SList(T)
assert(l.front == 8); assert(l.front == 8);
} }
/// Ditto. /// ditto
size_t insertFront(R)(R el) @trusted size_t insertFront(R)(R el) @trusted
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -408,13 +408,13 @@ struct SList(T)
return retLength; return retLength;
} }
/// Ditto. /// ditto
size_t insertFront(size_t R)(T[R] el) size_t insertFront(size_t R)(T[R] el)
{ {
return insertFront!(T[])(el[]); return insertFront!(T[])(el[]);
} }
/// Ditto. /// ditto
alias insert = insertFront; alias insert = insertFront;
/// ///
@ -480,7 +480,7 @@ struct SList(T)
assert(l1 == l2); assert(l1 == l2);
} }
/// Ditto. /// ditto
size_t insertBefore(R)(Range r, R el) size_t insertBefore(R)(Range r, R el)
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -512,7 +512,7 @@ struct SList(T)
assert(l1 == l2); assert(l1 == l2);
} }
/// Ditto. /// ditto
size_t insertBefore(Range r, ref T el) @trusted size_t insertBefore(Range r, ref T el) @trusted
in in
{ {
@ -746,7 +746,7 @@ struct SList(T)
return typeof(return)(this.head); return typeof(return)(this.head);
} }
/// Ditto. /// ditto
ConstRange opIndex() const ConstRange opIndex() const
{ {
return typeof(return)(this.head); return typeof(return)(this.head);
@ -773,7 +773,7 @@ struct SList(T)
return this = that[]; return this = that[];
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(R)(R that) ref typeof(this) opAssign(R)(R that)
if (is(R == SList)) if (is(R == SList))
{ {
@ -1019,7 +1019,7 @@ struct DList(T)
/// The range types for $(D_PSYMBOL DList). /// The range types for $(D_PSYMBOL DList).
alias Range = DRange!DList; alias Range = DRange!DList;
/// Ditto. /// ditto
alias ConstRange = DRange!(const DList); alias ConstRange = DRange!(const DList);
private alias Entry = DEntry!T; private alias Entry = DEntry!T;
@ -1114,7 +1114,7 @@ struct DList(T)
assert(l.empty); assert(l.empty);
} }
/// Ditto. /// ditto
this(const size_t len, shared Allocator allocator = defaultAllocator) this(const size_t len, shared Allocator allocator = defaultAllocator)
{ {
this(len, T.init, allocator); this(len, T.init, allocator);
@ -1128,7 +1128,7 @@ struct DList(T)
assert(l.front == 0); assert(l.front == 0);
} }
/// Ditto. /// ditto
this(shared Allocator allocator) this(shared Allocator allocator)
in in
{ {
@ -1162,7 +1162,7 @@ struct DList(T)
this(init[], allocator); this(init[], allocator);
} }
/// Ditto. /// ditto
this(R)(R init, shared Allocator allocator = defaultAllocator) @trusted this(R)(R init, shared Allocator allocator = defaultAllocator) @trusted
if (is(R == DList)) if (is(R == DList))
{ {
@ -1353,7 +1353,7 @@ struct DList(T)
return moveFront(this.head, el); return moveFront(this.head, el);
} }
/// Ditto. /// ditto
size_t insertFront(R)(ref R el) @trusted size_t insertFront(R)(ref R el) @trusted
if (isImplicitlyConvertible!(R, T)) if (isImplicitlyConvertible!(R, T))
{ {
@ -1385,7 +1385,7 @@ struct DList(T)
assert(l.back == 5); assert(l.back == 5);
} }
/// Ditto. /// ditto
size_t insertFront(R)(R el) size_t insertFront(R)(R el)
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -1413,7 +1413,7 @@ struct DList(T)
assert(l1.head is l1.head.next.prev); assert(l1.head is l1.head.next.prev);
} }
/// Ditto. /// ditto
size_t insertFront(size_t R)(T[R] el) size_t insertFront(size_t R)(T[R] el)
{ {
return insertFront!(T[])(el[]); return insertFront!(T[])(el[]);
@ -1479,7 +1479,7 @@ struct DList(T)
return moveBack(this.tail, el); return moveBack(this.tail, el);
} }
/// Ditto. /// ditto
size_t insertBack(R)(ref R el) @trusted size_t insertBack(R)(ref R el) @trusted
if (isImplicitlyConvertible!(R, T)) if (isImplicitlyConvertible!(R, T))
{ {
@ -1511,7 +1511,7 @@ struct DList(T)
assert(l.back == value); assert(l.back == value);
} }
/// Ditto. /// ditto
size_t insertBack(R)(R el) @trusted size_t insertBack(R)(R el) @trusted
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -1536,7 +1536,7 @@ struct DList(T)
return inserted; return inserted;
} }
/// Ditto. /// ditto
size_t insertBack(size_t R)(T[R] el) size_t insertBack(size_t R)(T[R] el)
{ {
return insertBack!(T[])(el[]); return insertBack!(T[])(el[]);
@ -1561,7 +1561,7 @@ struct DList(T)
assert(l2.back == 9); assert(l2.back == 9);
} }
/// Ditto. /// ditto
alias insert = insertBack; alias insert = insertBack;
version (assert) version (assert)
@ -1608,7 +1608,7 @@ struct DList(T)
assert(l1 == l2); assert(l1 == l2);
} }
/// Ditto. /// ditto
size_t insertBefore(Range r, ref T el) @trusted size_t insertBefore(Range r, ref T el) @trusted
in in
{ {
@ -1643,7 +1643,7 @@ struct DList(T)
assert(l1 == l2); assert(l1 == l2);
} }
/// Ditto. /// ditto
size_t insertBefore(R)(Range r, R el) size_t insertBefore(R)(Range r, R el)
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -1734,7 +1734,7 @@ struct DList(T)
assert(l.length == 1); assert(l.length == 1);
} }
/// Ditto. /// ditto
size_t insertAfter(Range r, ref T el) @trusted size_t insertAfter(Range r, ref T el) @trusted
in in
{ {
@ -1769,7 +1769,7 @@ struct DList(T)
assert(l1 == l2); assert(l1 == l2);
} }
/// Ditto. /// ditto
size_t insertAfter(R)(Range r, R el) size_t insertAfter(R)(Range r, R el)
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -1925,7 +1925,7 @@ struct DList(T)
assert(l.empty); assert(l.empty);
} }
/// Ditto. /// ditto
void removeBack() void removeBack()
in in
{ {
@ -1998,7 +1998,7 @@ struct DList(T)
assert(l.removeFront(3) == 0); assert(l.removeFront(3) == 0);
} }
/// Ditto. /// ditto
size_t removeBack(const size_t howMany) size_t removeBack(const size_t howMany)
out (removed) out (removed)
{ {
@ -2111,7 +2111,7 @@ struct DList(T)
return typeof(return)(this.head, this.tail); return typeof(return)(this.head, this.tail);
} }
/// Ditto. /// ditto
ConstRange opIndex() const ConstRange opIndex() const
{ {
return typeof(return)(this.head, this.tail); return typeof(return)(this.head, this.tail);
@ -2138,7 +2138,7 @@ struct DList(T)
return this = that[]; return this = that[];
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(R)(R that) ref typeof(this) opAssign(R)(R that)
if (is(R == DList)) if (is(R == DList))
{ {

View File

@ -115,7 +115,7 @@ struct Queue(T)
enqueueEntry(temp); enqueueEntry(temp);
} }
/// Ditto. /// ditto
void enqueue(T x) void enqueue(T x)
{ {
auto temp = allocateEntry(); auto temp = allocateEntry();
@ -212,7 +212,7 @@ struct Queue(T)
return result; return result;
} }
/// Ditto. /// ditto
int opApply(scope int delegate(ref T) @nogc dg) int opApply(scope int delegate(ref T) @nogc dg)
{ {
int result; int result;

View File

@ -156,7 +156,7 @@ struct Set(T)
/// The range types for $(D_PSYMBOL Set). /// The range types for $(D_PSYMBOL Set).
alias Range = .Range!T; alias Range = .Range!T;
/// Ditto. /// ditto
alias ConstRange = .Range!(const T); alias ConstRange = .Range!(const T);
invariant invariant
@ -186,7 +186,7 @@ struct Set(T)
rehash(n); rehash(n);
} }
/// Ditto. /// ditto
this(shared Allocator allocator) this(shared Allocator allocator)
in in
{ {
@ -232,7 +232,7 @@ struct Set(T)
this.data = typeof(this.data)(init.data, allocator); this.data = typeof(this.data)(init.data, allocator);
} }
/// Ditto. /// ditto
this(S)(S init, shared Allocator allocator = defaultAllocator) this(S)(S init, shared Allocator allocator = defaultAllocator)
if (is(S == Set)) if (is(S == Set))
in in
@ -266,7 +266,7 @@ struct Set(T)
return this; return this;
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(S)(S that) @trusted ref typeof(this) opAssign(S)(S that) @trusted
if (is(S == Set)) if (is(S == Set))
{ {
@ -614,7 +614,7 @@ struct Set(T)
return typeof(return)(this.data[]); return typeof(return)(this.data[]);
} }
/// Ditto. /// ditto
ConstRange opIndex() const ConstRange opIndex() const
{ {
return typeof(return)(this.data[]); return typeof(return)(this.data[]);

View File

@ -417,7 +417,7 @@ struct String
} }
} }
/// Ditto. /// ditto
this(S)(ref S init, shared Allocator allocator = defaultAllocator) this(S)(ref S init, shared Allocator allocator = defaultAllocator)
nothrow @trusted @nogc nothrow @trusted @nogc
if (is(Unqual!S == String)) if (is(Unqual!S == String))
@ -428,7 +428,7 @@ struct String
this.length_ = init.length; this.length_ = init.length;
} }
/// Ditto. /// ditto
this(shared Allocator allocator) pure nothrow @safe @nogc this(shared Allocator allocator) pure nothrow @safe @nogc
in in
{ {
@ -585,7 +585,7 @@ struct String
return 1; return 1;
} }
/// Ditto. /// ditto
size_t insertBack(const wchar chr) @trusted @nogc size_t insertBack(const wchar chr) @trusted @nogc
{ {
reserve(length + 3); reserve(length + 3);
@ -620,7 +620,7 @@ struct String
defaultAllocator.dispose(exception); defaultAllocator.dispose(exception);
} }
/// Ditto. /// ditto
size_t insertBack(const dchar chr) @trusted @nogc size_t insertBack(const dchar chr) @trusted @nogc
{ {
reserve(length + dchar.sizeof); reserve(length + dchar.sizeof);
@ -730,7 +730,7 @@ struct String
} }
} }
/// Ditto. /// ditto
size_t insertBack(R)(R str) @trusted size_t insertBack(R)(R str) @trusted
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -796,7 +796,7 @@ struct String
return this.length_ - oldLength; return this.length_ - oldLength;
} }
/// Ditto. /// ditto
size_t insertBack(R)(R str) @trusted size_t insertBack(R)(R str) @trusted
if (!isInfinite!R if (!isInfinite!R
&& isInputRange!R && isInputRange!R
@ -815,7 +815,7 @@ struct String
return insertedLength; return insertedLength;
} }
/// Ditto. /// ditto
alias insert = insertBack; alias insert = insertBack;
/** /**
@ -943,7 +943,7 @@ struct String
return target; return target;
} }
/// Ditto. /// ditto
ByCodeUnit!char opSliceAssign(const char[] value, ByCodeUnit!char opSliceAssign(const char[] value,
const size_t i, const size_t i,
const size_t j) const size_t j)
@ -959,7 +959,7 @@ struct String
return opSlice(i, j); return opSlice(i, j);
} }
/// Ditto. /// ditto
ByCodeUnit!char opSliceAssign(const char value, ByCodeUnit!char opSliceAssign(const char value,
const size_t i, const size_t i,
const size_t j) const size_t j)
@ -1072,7 +1072,7 @@ struct String
return typeof(return)(this, this.data, this.data + length); return typeof(return)(this, this.data, this.data + length);
} }
/// Ditto. /// ditto
ByCodeUnit!(const char) opIndex() const pure nothrow @trusted @nogc ByCodeUnit!(const char) opIndex() const pure nothrow @trusted @nogc
{ {
return typeof(return)(this, this.data, this.data + length); return typeof(return)(this, this.data, this.data + length);
@ -1105,7 +1105,7 @@ struct String
return typeof(return)(this, this.data, this.data + length); return typeof(return)(this, this.data, this.data + length);
} }
/// Ditto. /// ditto
ByCodePoint!(const char) byCodePoint() const pure nothrow @trusted @nogc ByCodePoint!(const char) byCodePoint() const pure nothrow @trusted @nogc
{ {
return typeof(return)(this, this.data, this.data + length); return typeof(return)(this, this.data, this.data + length);
@ -1173,7 +1173,7 @@ struct String
return typeof(return)(this, this.data + i, this.data + j); return typeof(return)(this, this.data + i, this.data + j);
} }
/// Ditto. /// ditto
ByCodeUnit!(const char) opSlice(const size_t i, const size_t j) ByCodeUnit!(const char) opSlice(const size_t i, const size_t j)
const pure nothrow @trusted @nogc const pure nothrow @trusted @nogc
in in
@ -1240,7 +1240,7 @@ struct String
return this; return this;
} }
/// Ditto. /// ditto
ref String opAssign(S)(ref S that) @trusted ref String opAssign(S)(ref S that) @trusted
if (is(Unqual!S == String)) if (is(Unqual!S == String))
{ {
@ -1301,7 +1301,7 @@ struct String
return cmp(this.data[0 .. length], that.data[0 .. that.length]); return cmp(this.data[0 .. length], that.data[0 .. that.length]);
} }
/// Ditto. /// ditto
int opCmp(S)(ByCodeUnit!S that) const @trusted int opCmp(S)(ByCodeUnit!S that) const @trusted
if (is(Unqual!S == char)) if (is(Unqual!S == char))
{ {
@ -1309,7 +1309,7 @@ struct String
that.begin[0 .. that.end - that.begin]); that.begin[0 .. that.end - that.begin]);
} }
/// Ditto. /// ditto
int opCmp(S)(ByCodePoint!S that) const @trusted int opCmp(S)(ByCodePoint!S that) const @trusted
if (is(Unqual!S == char)) if (is(Unqual!S == char))
{ {
@ -1317,7 +1317,7 @@ struct String
that.begin[0 .. that.end - that.begin]); that.begin[0 .. that.end - that.begin]);
} }
/// Ditto. /// ditto
int opCmp()(const char[] that) const @trusted int opCmp()(const char[] that) const @trusted
{ {
return cmp(this.data[0 .. length], that); return cmp(this.data[0 .. length], that);
@ -1362,7 +1362,7 @@ struct String
that.begin[0 .. that.end - that.begin]); that.begin[0 .. that.end - that.begin]);
} }
/// Ditto. /// ditto
bool opEquals(S)(ByCodePoint!S that) const @trusted bool opEquals(S)(ByCodePoint!S that) const @trusted
if (is(Unqual!S == char)) if (is(Unqual!S == char))
{ {
@ -1370,7 +1370,7 @@ struct String
that.begin[0 .. that.end - that.begin]); that.begin[0 .. that.end - that.begin]);
} }
/// Ditto. /// ditto
bool opEquals()(const char[] that) const @trusted bool opEquals()(const char[] that) const @trusted
{ {
return equal(this.data[0 .. length], that); return equal(this.data[0 .. length], that);
@ -1443,7 +1443,7 @@ struct String
assert(s2 == "cup"); assert(s2 == "cup");
} }
/// Ditto. /// ditto
ByCodeUnit!char opIndexAssign(const char value) pure nothrow @safe @nogc ByCodeUnit!char opIndexAssign(const char value) pure nothrow @safe @nogc
{ {
return opSliceAssign(value, 0, length); return opSliceAssign(value, 0, length);
@ -1456,7 +1456,7 @@ struct String
assert(s1 == "aaa"); assert(s1 == "aaa");
} }
/// Ditto. /// ditto
ByCodeUnit!char opIndexAssign(const char[] value) pure nothrow @safe @nogc ByCodeUnit!char opIndexAssign(const char[] value) pure nothrow @safe @nogc
{ {
return opSliceAssign(value, 0, length); return opSliceAssign(value, 0, length);

View File

@ -64,7 +64,7 @@ template to(To)
return from; return from;
} }
/// Ditto. /// ditto
To to(From)(From from) To to(From)(From from)
if (is(Unqual!To == Unqual!From) || (isNumeric!From && isFloatingPoint!To)) if (is(Unqual!To == Unqual!From) || (isNumeric!From && isFloatingPoint!To))
{ {
@ -358,7 +358,7 @@ private @nogc unittest
defaultAllocator.dispose(exception); defaultAllocator.dispose(exception);
} }
/// Ditto. /// ditto
To to(To, From)(auto ref const From from) To to(To, From)(auto ref const From from)
if ((is(From == String) || isSomeString!From) && is(Unqual!To == bool)) if ((is(From == String) || isSomeString!From) && is(Unqual!To == bool))
{ {
@ -443,7 +443,7 @@ pure nothrow @safe @nogc unittest
assert(false.to!int == 0); assert(false.to!int == 0);
} }
/// Ditto. /// ditto
To to(To, From)(const From from) To to(To, From)(const From from)
if (is(Unqual!From == bool) && is(Unqual!To == String)) if (is(Unqual!From == bool) && is(Unqual!To == String))
{ {

View File

@ -75,7 +75,7 @@ struct Integer
this = value; this = value;
} }
/// Ditto. /// ditto
this(T)(ref T value, shared Allocator allocator = defaultAllocator) this(T)(ref T value, shared Allocator allocator = defaultAllocator)
if (is(Unqual!T == Integer)) if (is(Unqual!T == Integer))
{ {
@ -83,7 +83,7 @@ struct Integer
this = value; this = value;
} }
/// Ditto. /// ditto
this(T)(T value, shared Allocator allocator = defaultAllocator) this(T)(T value, shared Allocator allocator = defaultAllocator)
if (is(T == Integer)) if (is(T == Integer))
{ {
@ -103,7 +103,7 @@ struct Integer
} }
} }
/// Ditto. /// ditto
this(shared Allocator allocator) pure nothrow @safe @nogc this(shared Allocator allocator) pure nothrow @safe @nogc
in in
{ {
@ -335,7 +335,7 @@ struct Integer
return this; return this;
} }
/// Ditto. /// ditto
ref Integer opAssign(T)(ref T value) @trusted ref Integer opAssign(T)(ref T value) @trusted
if (is(Unqual!T == Integer)) if (is(Unqual!T == Integer))
{ {
@ -347,7 +347,7 @@ struct Integer
return this; return this;
} }
/// Ditto. /// ditto
ref Integer opAssign(T)(T value) nothrow @safe @nogc ref Integer opAssign(T)(T value) nothrow @safe @nogc
if (is(T == Integer)) if (is(T == Integer))
{ {
@ -371,7 +371,7 @@ struct Integer
return this.size > 0; return this.size > 0;
} }
/// Ditto. /// ditto
T opCast(T)() const T opCast(T)() const
if (isIntegral!T && isUnsigned!T) if (isIntegral!T && isUnsigned!T)
{ {
@ -385,7 +385,7 @@ struct Integer
return ret; return ret;
} }
/// Ditto. /// ditto
T opCast(T)() const T opCast(T)() const
if (isIntegral!T && isSigned!T) if (isIntegral!T && isSigned!T)
{ {
@ -677,7 +677,7 @@ struct Integer
assert(integer1 > integer2); assert(integer1 > integer2);
} }
/// Ditto. /// ditto
int opCmp(I)(const I that) const int opCmp(I)(const I that) const
if (isIntegral!I) if (isIntegral!I)
{ {
@ -789,7 +789,7 @@ struct Integer
} }
} }
/// Ditto. /// ditto
ref Integer opOpAssign(string op : "-")(auto ref const Integer operand) ref Integer opOpAssign(string op : "-")(auto ref const Integer operand)
{ {
if (this.sign != operand.sign) if (this.sign != operand.sign)
@ -837,7 +837,7 @@ struct Integer
} }
} }
/// Ditto. /// ditto
ref Integer opOpAssign(string op : "*")(auto ref const Integer operand) ref Integer opOpAssign(string op : "*")(auto ref const Integer operand)
{ {
const digits = this.size + operand.size + 1; const digits = this.size + operand.size + 1;
@ -861,7 +861,7 @@ struct Integer
assert(h1 == 56088); assert(h1 == 56088);
} }
/// Ditto. /// ditto
ref Integer opOpAssign(string op : "/")(auto ref const Integer operand) ref Integer opOpAssign(string op : "/")(auto ref const Integer operand)
in in
{ {
@ -873,7 +873,7 @@ struct Integer
return this; return this;
} }
/// Ditto. /// ditto
ref Integer opOpAssign(string op : "%")(auto ref const Integer operand) ref Integer opOpAssign(string op : "%")(auto ref const Integer operand)
in in
{ {
@ -906,7 +906,7 @@ struct Integer
assert(h1 == 123); assert(h1 == 123);
} }
/// Ditto. /// ditto
ref Integer opOpAssign(string op : ">>")(const size_t operand) ref Integer opOpAssign(string op : ">>")(const size_t operand)
{ {
if (operand == 0) if (operand == 0)
@ -968,7 +968,7 @@ struct Integer
assert(integer == 0); assert(integer == 0);
} }
/// Ditto. /// ditto
ref Integer opOpAssign(string op : "<<")(const size_t operand) ref Integer opOpAssign(string op : "<<")(const size_t operand)
{ {
const step = operand / digitBitCount; const step = operand / digitBitCount;
@ -1027,7 +1027,7 @@ struct Integer
return ret; return ret;
} }
/// Ditto. /// ditto
Integer opUnary(string op : "-")() const Integer opUnary(string op : "-")() const
{ {
auto ret = Integer(this, allocator); auto ret = Integer(this, allocator);
@ -1068,7 +1068,7 @@ struct Integer
assert(h2 == ~cast(ubyte) 79); assert(h2 == ~cast(ubyte) 79);
} }
/// Ditto. /// ditto
ref Integer opUnary(string op : "++")() ref Integer opUnary(string op : "++")()
{ {
if (this.sign) if (this.sign)
@ -1082,7 +1082,7 @@ struct Integer
return this; return this;
} }
/// Ditto. /// ditto
ref Integer opUnary(string op : "--")() ref Integer opUnary(string op : "--")()
{ {
if (this.size == 0) if (this.size == 0)
@ -1152,7 +1152,7 @@ struct Integer
mixin("return Integer(this, allocator) " ~ op ~ "= operand;"); mixin("return Integer(this, allocator) " ~ op ~ "= operand;");
} }
/// Ditto. /// ditto
Integer opBinary(string op)(const auto ref Integer operand) const Integer opBinary(string op)(const auto ref Integer operand) const
if (op == "/" || op == "%") if (op == "/" || op == "%")
in in
@ -1164,7 +1164,7 @@ struct Integer
mixin("return Integer(this, allocator) " ~ op ~ "= operand;"); mixin("return Integer(this, allocator) " ~ op ~ "= operand;");
} }
/// Ditto. /// ditto
Integer opBinary(string op)(const size_t operand) const Integer opBinary(string op)(const size_t operand) const
if (op == "<<" || op == ">>") if (op == "<<" || op == ">>")
{ {

View File

@ -618,7 +618,7 @@ body
return result; return result;
} }
/// Ditto. /// ditto
I pow(I)(const auto ref I x, const auto ref I y, const auto ref I z) I pow(I)(const auto ref I x, const auto ref I y, const auto ref I z)
if (is(I == Integer)) if (is(I == Integer))
in in

View File

@ -72,7 +72,7 @@ mixin template DefaultAllocator()
return allocator_; return allocator_;
} }
/// Ditto. /// ditto
@property shared(Allocator) allocator() const pure nothrow @trusted @nogc @property shared(Allocator) allocator() const pure nothrow @trusted @nogc
out (allocator) out (allocator)
{ {

View File

@ -127,7 +127,7 @@ struct RefCounted(T)
this.storage.payload = value; this.storage.payload = value;
} }
/// Ditto. /// ditto
this(shared Allocator allocator) this(shared Allocator allocator)
in in
{ {
@ -209,7 +209,7 @@ struct RefCounted(T)
assert(*rc == 7); assert(*rc == 7);
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(typeof(null)) ref typeof(this) opAssign(typeof(null))
{ {
if (this.storage is null) if (this.storage is null)
@ -237,7 +237,7 @@ struct RefCounted(T)
assert(!rc.isInitialized); assert(!rc.isInitialized);
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(typeof(this) rhs) ref typeof(this) opAssign(typeof(this) rhs)
{ {
swap(this.allocator_, rhs.allocator_); swap(this.allocator_, rhs.allocator_);
@ -660,7 +660,7 @@ struct Unique(T)
this.payload = value; this.payload = value;
} }
/// Ditto. /// ditto
this(shared Allocator allocator) this(shared Allocator allocator)
in in
{ {
@ -706,14 +706,14 @@ struct Unique(T)
return this; return this;
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(typeof(null)) ref typeof(this) opAssign(typeof(null))
{ {
allocator.dispose(this.payload); allocator.dispose(this.payload);
return this; return this;
} }
/// Ditto. /// ditto
ref typeof(this) opAssign(typeof(this) rhs) ref typeof(this) opAssign(typeof(this) rhs)
{ {
swap(this.allocator_, rhs.allocator_); swap(this.allocator_, rhs.allocator_);

View File

@ -765,7 +765,7 @@ import tanya.meta.transform;
*/ */
alias Alias(alias T) = T; alias Alias(alias T) = T;
/// Ditto. /// ditto
alias Alias(T) = T; alias Alias(T) = T;
/// ///
@ -926,7 +926,7 @@ template staticIndexOf(T, L...)
enum ptrdiff_t staticIndexOf = indexOf!(0, AliasSeq!(T, L)); enum ptrdiff_t staticIndexOf = indexOf!(0, AliasSeq!(T, L));
} }
/// Ditto. /// ditto
template staticIndexOf(alias T, L...) template staticIndexOf(alias T, L...)
{ {
enum ptrdiff_t staticIndexOf = indexOf!(0, AliasSeq!(T, L)); enum ptrdiff_t staticIndexOf = indexOf!(0, AliasSeq!(T, L));
@ -1230,19 +1230,19 @@ template Replace(T, U, L...)
alias Replace = ReplaceOne!(T, U, L); alias Replace = ReplaceOne!(T, U, L);
} }
/// Ditto. /// ditto
template Replace(alias T, U, L...) template Replace(alias T, U, L...)
{ {
alias Replace = ReplaceOne!(T, U, L); alias Replace = ReplaceOne!(T, U, L);
} }
/// Ditto. /// ditto
template Replace(T, alias U, L...) template Replace(T, alias U, L...)
{ {
alias Replace = ReplaceOne!(T, U, L); alias Replace = ReplaceOne!(T, U, L);
} }
/// Ditto. /// ditto
template Replace(alias T, alias U, L...) template Replace(alias T, alias U, L...)
{ {
alias Replace = ReplaceOne!(T, U, L); alias Replace = ReplaceOne!(T, U, L);
@ -1293,19 +1293,19 @@ template ReplaceAll(T, U, L...)
alias ReplaceAll = ReplaceAllImpl!(T, U, L); alias ReplaceAll = ReplaceAllImpl!(T, U, L);
} }
/// Ditto. /// ditto
template ReplaceAll(alias T, U, L...) template ReplaceAll(alias T, U, L...)
{ {
alias ReplaceAll = ReplaceAllImpl!(T, U, L); alias ReplaceAll = ReplaceAllImpl!(T, U, L);
} }
/// Ditto. /// ditto
template ReplaceAll(T, alias U, L...) template ReplaceAll(T, alias U, L...)
{ {
alias ReplaceAll = ReplaceAllImpl!(T, U, L); alias ReplaceAll = ReplaceAllImpl!(T, U, L);
} }
/// Ditto. /// ditto
template ReplaceAll(alias T, alias U, L...) template ReplaceAll(alias T, alias U, L...)
{ {
alias ReplaceAll = ReplaceAllImpl!(T, U, L); alias ReplaceAll = ReplaceAllImpl!(T, U, L);
@ -1547,7 +1547,7 @@ template Erase(T, L...)
alias Erase = EraseOne!(T, L); alias Erase = EraseOne!(T, L);
} }
/// Ditto. /// ditto
template Erase(alias T, L...) template Erase(alias T, L...)
{ {
alias Erase = EraseOne!(T, L); alias Erase = EraseOne!(T, L);
@ -1590,7 +1590,7 @@ template EraseAll(T, L...)
alias EraseAll = EraseAllImpl!(T, L); alias EraseAll = EraseAllImpl!(T, L);
} }
/// Ditto. /// ditto
template EraseAll(alias T, L...) template EraseAll(alias T, L...)
{ {
alias EraseAll = EraseAllImpl!(T, L); alias EraseAll = EraseAllImpl!(T, L);

View File

@ -721,7 +721,7 @@ pure nothrow @safe @nogc unittest
*/ */
alias TypeOf(T) = T; alias TypeOf(T) = T;
/// Ditto. /// ditto
template TypeOf(alias T) template TypeOf(alias T)
if (isExpressions!T || isTemplate!T) if (isExpressions!T || isTemplate!T)
{ {

View File

@ -553,7 +553,7 @@ if (T == "scheme"
return mixin("ret." ~ T); return mixin("ret." ~ T);
} }
/// Ditto. /// ditto
URL parseURL(const char[] source) @nogc URL parseURL(const char[] source) @nogc
{ {
return URL(source); return URL(source);

View File

@ -234,7 +234,7 @@ struct ErrorCode
return this.value_; return this.value_;
} }
/// Ditto. /// ditto
ErrorNo opCast(T : int)() const ErrorNo opCast(T : int)() const
{ {
return this.value_; return this.value_;
@ -264,7 +264,7 @@ struct ErrorCode
return this; return this;
} }
/// Ditto. /// ditto
ref ErrorCode opAssign()(auto ref const ErrorCode that) ref ErrorCode opAssign()(auto ref const ErrorCode that)
pure nothrow @safe @nogc pure nothrow @safe @nogc
{ {
@ -305,7 +305,7 @@ struct ErrorCode
return this.value_ == that; return this.value_ == that;
} }
/// Ditto. /// ditto
bool opEquals()(auto ref const ErrorCode that) bool opEquals()(auto ref const ErrorCode that)
const pure nothrow @safe @nogc const pure nothrow @safe @nogc
{ {

View File

@ -143,7 +143,7 @@ body
array = array[1 .. $]; array = array[1 .. $];
} }
/// Ditto. /// ditto
void popBack(T)(ref T[] array) void popBack(T)(ref T[] array)
in in
{ {