Skip to content

Commit

Permalink
XREF_PACK -> REF (sed)
Browse files Browse the repository at this point in the history
Done by:

from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
  • Loading branch information
aG0aep6G committed May 27, 2016
1 parent 764caef commit d648f93
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 57 deletions.
4 changes: 2 additions & 2 deletions std/algorithm/comparison.d
Expand Up @@ -1270,7 +1270,7 @@ Returns:
the type among the passed arguments that is able to store the largest value.
See_Also:
$(XREF_PACK algorithm,searching,maxElement)
$(REF maxElement, std,algorithm,searching)
*/
MaxType!T max(T...)(T args)
if (T.length >= 2)
Expand Down Expand Up @@ -1384,7 +1384,7 @@ Params: args = The values to select the minimum from. At least two arguments
must be passed, and they must be comparable with `<`.
Returns: The minimum of the passed-in values.
See_Also:
$(XREF_PACK algorithm,searching,minElement)
$(REF minElement, std,algorithm,searching)
*/
MinType!T min(T...)(T args)
if (T.length >= 2)
Expand Down
6 changes: 3 additions & 3 deletions std/algorithm/iteration.d
Expand Up @@ -136,7 +136,7 @@ $(D cache) does not provide random access primitives,
as $(D cache) would be unable to cache the random accesses.
If $(D Range) provides slicing primitives,
then $(D cache) will provide the same slicing primitives,
but $(D hasSlicing!Cache) will not yield true (as the $(XREF_PACK _range,primitives,hasSlicing)
but $(D hasSlicing!Cache) will not yield true (as the $(REF hasSlicing, std,_range,primitives)
trait also checks for random access).
Params:
Expand Down Expand Up @@ -4465,7 +4465,7 @@ b)(r, 0), $(D sum) uses specialized algorithms to maximize accuracy,
as follows.
$(UL
$(LI If $(D $(XREF_PACK range,primitives,ElementType)!R) is a floating-point
$(LI If $(D $(REF ElementType, std,range,primitives)!R) is a floating-point
type and $(D R) is a
$(XREF_PACK_NAMED range,primitives,isRandomAccessRange,random-access range) with
length and slicing, then $(D sum) uses the
Expand Down Expand Up @@ -4887,7 +4887,7 @@ A forward range the elements of which are an $(XREF range,
indexed) view into $(D r).
See_Also:
$(XREF_PACK algorithm,sorting,nextPermutation).
$(REF nextPermutation, std,algorithm,sorting).
*/
Permutations!Range permutations(Range)(Range r)
if (isRandomAccessRange!Range && hasLength!Range)
Expand Down
4 changes: 2 additions & 2 deletions std/algorithm/sorting.d
Expand Up @@ -1123,7 +1123,7 @@ time complexity.
See_Also:
$(REF assumeSorted, std,range)$(BR)
$(REF SortedRange, std,range)$(BR)
$(XREF_PACK algorithm,mutation,SwapStrategy)$(BR)
$(REF SwapStrategy, std,algorithm,mutation)$(BR)
$(REF binaryFun, std,functional)
*/
SortedRange!(Range, less)
Expand Down Expand Up @@ -2775,7 +2775,7 @@ do
* case the range is reversed back to the lexicographically smallest
* permutation; otherwise returns true.
* See_Also:
* $(XREF_PACK algorithm,iteration,permutations).
* $(REF permutations, std,algorithm,iteration).
*/
bool nextPermutation(alias less="a < b", BidirectionalRange)
(BidirectionalRange range)
Expand Down
10 changes: 5 additions & 5 deletions std/array.d
Expand Up @@ -1327,7 +1327,7 @@ delimiter. Runs of whitespace are merged together (no empty words are produced).
$(D @safe), $(D pure) and $(D CTFE)-able.
See_Also:
$(XREF_PACK algorithm,iteration,splitter) for a version that splits using any
$(REF splitter, std,algorithm,iteration) for a version that splits using any
separator.
$(REF splitter, std,regex) for a version that splits using a regular
Expand Down Expand Up @@ -1421,10 +1421,10 @@ unittest

// @@@DEPRECATED_2017-01@@@
/++
$(RED Deprecated. Use $(XREF_PACK algorithm,iteration,_splitter) instead.
$(RED Deprecated. Use $(REF _splitter, std,algorithm,iteration) instead.
This will be removed in January 2017.)
Alias for $(XREF_PACK algorithm,iteration,_splitter).
Alias for $(REF _splitter, std,algorithm,iteration).
+/
deprecated("Please use std.algorithm.iteration.splitter instead.")
alias splitter = std.algorithm.iteration.splitter;
Expand Down Expand Up @@ -1452,7 +1452,7 @@ alias splitter = std.algorithm.iteration.splitter;
An array containing the divided parts of $(D range).
See_Also:
$(XREF_PACK algorithm,iteration,splitter) for the lazy version of this
$(REF splitter, std,algorithm,iteration) for the lazy version of this
function.
+/
auto split(Range, Separator)(Range range, Separator sep)
Expand Down Expand Up @@ -1553,7 +1553,7 @@ private enum bool hasCheapIteration(R) = isArray!R;
an allocated array of Elements
See_Also:
$(XREF_PACK algorithm,iteration,joiner)
$(REF joiner, std,algorithm,iteration)
+/
ElementEncodingType!(ElementType!RoR)[] join(RoR, R)(RoR ror, R sep)
if (isInputRange!RoR &&
Expand Down
4 changes: 2 additions & 2 deletions std/container/package.d
Expand Up @@ -6,7 +6,7 @@ This module defines generic containers.
Construction:
To implement the different containers both struct and class based
approaches have been used. $(XREF_PACK _container,util,make) allows for
approaches have been used. $(REF make, std,_container,util) allows for
uniform construction with either approach.
---
Expand Down Expand Up @@ -85,7 +85,7 @@ array1.removeBack();
assert(array2.empty);
---
It is therefore recommended to always construct containers using
$(XREF_PACK _container,util,make).
$(REF make, std,_container,util).
This is in fact necessary to put containers into another _container.
For example, to construct an $(D Array) of ten empty $(D Array)s, use
Expand Down
16 changes: 8 additions & 8 deletions std/csv.d
Expand Up @@ -293,7 +293,7 @@ enum Malformed
*
* Returns:
* An input range R as defined by
* $(XREF_PACK range,primitives,isInputRange). When $(D Contents) is a
* $(REF isInputRange, std,range,primitives). When $(D Contents) is a
* struct, class, or an associative array, the element type of R is
* $(D Contents), otherwise the element type of R is itself a range with
* element type $(D Contents).
Expand Down Expand Up @@ -368,7 +368,7 @@ auto csvReader(Contents = string,Malformed ErrorLevel = Malformed.throwException
*
* Returns:
* An input range R as defined by
* $(XREF_PACK range,primitives,isInputRange). When $(D Contents) is a
* $(REF isInputRange, std,range,primitives). When $(D Contents) is a
* struct, class, or an associative array, the element type of R is
* $(D Contents), otherwise the element type of R is itself a range with
* element type $(D Contents).
Expand Down Expand Up @@ -932,7 +932,7 @@ public:

/**
* Part of an input range as defined by
* $(XREF_PACK range,primitives,isInputRange).
* $(REF isInputRange, std,range,primitives).
*
* Returns:
* If $(D Contents) is a struct, will be filled with record data.
Expand Down Expand Up @@ -964,7 +964,7 @@ public:

/**
* Part of an input range as defined by
* $(XREF_PACK range,primitives,isInputRange).
* $(REF isInputRange, std,range,primitives).
*/
@property bool empty() @safe @nogc pure nothrow const
{
Expand All @@ -973,7 +973,7 @@ public:

/**
* Part of an input range as defined by
* $(XREF_PACK range,primitives,isInputRange).
* $(REF isInputRange, std,range,primitives).
*
* Throws:
* $(LREF CSVException) When a quote is found in an unquoted field,
Expand Down Expand Up @@ -1179,7 +1179,7 @@ public:

/**
* Part of an input range as defined by
* $(XREF_PACK range,primitives,isInputRange).
* $(REF isInputRange, std,range,primitives).
*/
@property Contents front() @safe pure
{
Expand All @@ -1189,7 +1189,7 @@ public:

/**
* Part of an input range as defined by
* $(XREF_PACK range,primitives,isInputRange).
* $(REF isInputRange, std,range,primitives).
*/
@property bool empty() @safe pure nothrow @nogc const
{
Expand All @@ -1214,7 +1214,7 @@ public:

/**
* Part of an input range as defined by
* $(XREF_PACK range,primitives,isInputRange).
* $(REF isInputRange, std,range,primitives).
*
* Throws:
* $(LREF CSVException) When a quote is found in an unquoted field,
Expand Down
12 changes: 6 additions & 6 deletions std/digest/crc.d
Expand Up @@ -26,8 +26,8 @@ $(TR $(TDNW Helpers) $(TD $(MYREF crcHexString) $(MYREF crc32Of))
*
* Note:
* CRCs are usually printed with the MSB first. When using
* $(XREF_PACK digest,digest,toHexString) the result will be in an unexpected
* order. Use $(XREF_PACK digest,digest,toHexString)'s optional order parameter
* $(REF toHexString, std,digest,digest) the result will be in an unexpected
* order. Use $(REF toHexString, std,digest,digest)'s optional order parameter
* to specify decreasing order for the correct result. The $(LREF crcHexString)
* alias can also be used for this purpose.
*
Expand Down Expand Up @@ -154,7 +154,7 @@ struct CRC32
public:
/**
* Use this to feed the digest with data.
* Also implements the $(XREF_PACK range,primitives,isOutputRange)
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
*/
void put(scope const(ubyte)[] data...) @trusted pure nothrow @nogc
Expand Down Expand Up @@ -304,7 +304,7 @@ unittest
}

/**
* This is a convenience alias for $(XREF_PACK digest,digest,digest) using the
* This is a convenience alias for $(REF digest, std,digest,digest) using the
* CRC32 implementation.
*
* Params:
Expand Down Expand Up @@ -339,7 +339,7 @@ unittest
}

/**
* This is a convenience alias for $(XREF_PACK digest,digest,toHexString)
* This is a convenience alias for $(REF toHexString, std,digest,digest)
* producing the usual CRC32 string output.
*/
public alias crcHexString = toHexString!(Order.decreasing);
Expand All @@ -351,7 +351,7 @@ public alias crcHexString = toHexString!(Order.decreasing, 16);
* OOP API CRC32 implementation.
* See $(D std.digest.digest) for differences between template and OOP API.
*
* This is an alias for $(D $(XREF_PACK digest,digest,WrapperDigest)!CRC32), see
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!CRC32), see
* there for more information.
*/
alias CRC32Digest = WrapperDigest!CRC32;
Expand Down
6 changes: 3 additions & 3 deletions std/digest/digest.d
Expand Up @@ -204,7 +204,7 @@ version(ExampleDigest)
public:
/**
* Use this to feed the digest with data.
* Also implements the $(XREF_PACK range,primitives,isOutputRange)
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
* The following usages of $(D put) must work for any type which
* passes $(LREF isDigest):
Expand Down Expand Up @@ -562,7 +562,7 @@ interface Digest
public:
/**
* Use this to feed the digest with data.
* Also implements the $(XREF_PACK range,primitives,isOutputRange)
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
*
* Example:
Expand Down Expand Up @@ -864,7 +864,7 @@ class WrapperDigest(T) if (isDigest!T) : Digest

/**
* Use this to feed the digest with data.
* Also implements the $(XREF_PACK range,primitives,isOutputRange)
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
*/
@trusted nothrow void put(scope const(ubyte)[] data...)
Expand Down
6 changes: 3 additions & 3 deletions std/digest/md.d
Expand Up @@ -288,7 +288,7 @@ struct MD5

/**
* Use this to feed the digest with data.
* Also implements the $(XREF_PACK range,primitives,isOutputRange)
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
*
* Example:
Expand Down Expand Up @@ -492,7 +492,7 @@ unittest
}

/**
* This is a convenience alias for $(XREF_PACK digest,digest,digest) using the
* This is a convenience alias for $(REF digest, std,digest,digest) using the
* MD5 implementation.
*/
//simple alias doesn't work here, hope this gets inlined...
Expand All @@ -512,7 +512,7 @@ unittest
* OOP API MD5 implementation.
* See $(D std.digest.digest) for differences between template and OOP API.
*
* This is an alias for $(D $(XREF_PACK digest,digest,WrapperDigest)!MD5), see
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!MD5), see
* there for more information.
*/
alias MD5Digest = WrapperDigest!MD5;
Expand Down
6 changes: 3 additions & 3 deletions std/digest/ripemd.d
Expand Up @@ -444,7 +444,7 @@ struct RIPEMD160

/**
* Use this to feed the digest with data.
* Also implements the $(XREF_PACK range,primitives,isOutputRange)
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
*
* Example:
Expand Down Expand Up @@ -661,7 +661,7 @@ unittest
}

/**
* This is a convenience alias for $(XREF_PACK digest,digest,digest) using the
* This is a convenience alias for $(REF digest, std,digest,digest) using the
* RIPEMD160 implementation.
*/
//simple alias doesn't work here, hope this gets inlined...
Expand All @@ -681,7 +681,7 @@ unittest
* OOP API RIPEMD160 implementation.
* See $(D std.digest.digest) for differences between template and OOP API.
*
* This is an alias for $(D $(XREF_PACK digest,digest,WrapperDigest)!RIPEMD160),
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!RIPEMD160),
* see there for more information.
*/
alias RIPEMD160Digest = WrapperDigest!RIPEMD160;
Expand Down
6 changes: 3 additions & 3 deletions std/digest/sha.d
Expand Up @@ -687,7 +687,7 @@ struct SHA(uint hashBlockSize, uint digestSize)

/**
* Use this to feed the digest with data.
* Also implements the $(XREF_PACK range,primitives,isOutputRange)
* Also implements the $(REF isOutputRange, std,range,primitives)
* interface for $(D ubyte) and $(D const(ubyte)[]).
*/
void put(scope const(ubyte)[] input...) @trusted pure nothrow @nogc
Expand Down Expand Up @@ -1115,7 +1115,7 @@ unittest
}

/**
* These are convenience aliases for $(XREF_PACK digest,digest,digest) using the
* These are convenience aliases for $(REF digest, std,digest,digest) using the
* SHA implementation.
*/
//simple alias doesn't work here, hope this gets inlined...
Expand Down Expand Up @@ -1194,7 +1194,7 @@ unittest
* OOP API SHA1 and SHA2 implementations.
* See $(D std.digest.digest) for differences between template and OOP API.
*
* This is an alias for $(D $(XREF_PACK digest,digest,WrapperDigest)!SHA1), see
* This is an alias for $(D $(REF WrapperDigest, std,digest,digest)!SHA1), see
* there for more information.
*/
alias SHA1Digest = WrapperDigest!SHA1;
Expand Down
2 changes: 1 addition & 1 deletion std/exception.d
Expand Up @@ -1749,7 +1749,7 @@ Returns: A wrapper $(D struct) that preserves the range interface of $(D input).
opSlice:
Infinite ranges with slicing support must return an instance of
$(REF Take, std,range) when sliced with a specific lower and upper
bound (see $(XREF_PACK range,primitives,hasSlicing)); $(D handle) deals with
bound (see $(REF hasSlicing, std,range,primitives)); $(D handle) deals with
this by $(D take)ing 0 from the return value of the handler function and
returning that when an exception is caught.
*/
Expand Down
2 changes: 1 addition & 1 deletion std/format.d
Expand Up @@ -104,7 +104,7 @@ private alias enforceFmt = enforceEx!FormatException;
Interprets variadic argument list $(D args), formats them according
to $(D fmt), and sends the resulting characters to $(D w). The
encoding of the output is the same as $(D Char). The type $(D Writer)
must satisfy $(D $(XREF_PACK range,primitives,isOutputRange)!(Writer, Char)).
must satisfy $(D $(REF isOutputRange, std,range,primitives)!(Writer, Char)).
The variadic arguments are normally consumed in order. POSIX-style
$(WEB opengroup.org/onlinepubs/009695399/functions/printf.html,
Expand Down

0 comments on commit d648f93

Please sign in to comment.