Skip to content

Commit

Permalink
Merge pull request #4364 from aG0aep6G/kill-xref
Browse files Browse the repository at this point in the history
Replace XREF with REF
  • Loading branch information
DmitryOlshansky committed May 28, 2016
2 parents bc63d2b + 641d6ff commit ff854b7
Show file tree
Hide file tree
Showing 43 changed files with 300 additions and 301 deletions.
32 changes: 16 additions & 16 deletions changelog.dd
Expand Up @@ -7,8 +7,8 @@ $(COMMENT Pending changelog for 2.072. This will get copied to dlang.org and
$(BUGSTITLE Library Changes,
$(LI $(RELATIVE_LINK2 process, Process creation in `std.process` was sped up
on Posix.))
$(LI $(RELATIVE_LINK2 std-algorithm-iteration-cumulativeFold, $(XREF
algorithm.iterator, cumulativeFold) was added.))
$(LI $(RELATIVE_LINK2 std-algorithm-iteration-cumulativeFold,
`algorithm.iteration.cumulativeFold` was added.))
$(LI $(RELATIVE_LINK2 padLeft-padRight, `std.range.padLeft` and
`std.range.padRight` were added.))
$(LI $(RELATIVE_LINK2 regex-multiple-patterns, `std.regex.regex` now
Expand All @@ -28,12 +28,12 @@ $(BUGSTITLE Library Changes,
exposed))
$(LI $(RELATIVE_LINK2 iota-length-size_t, `std.range.iota's `.length`
property is fixed to `size_t` instead of the type being iterated))
$(LI $(XREF uni, isNumber) and $(XREF uni, isPunctuation) now use a separate,
$(LI $(REF isNumber, std,uni) and $(REF isPunctuation, std,uni) now use a separate,
optimized path for ASCII inputs.)
$(LI $(XREF uni, isAlphaNum), which is analogous to $(XREF ascii, isAlphaNum)
$(LI $(REF isAlphaNum, std,uni), which is analogous to $(REF isAlphaNum, std,ascii)
was added.)
$(LI $(XREF regex, regex) now supports inline comments with (?#...) syntax.)
$(LI std.regex had numerous optimization applied, compile-time $(XREF regex, ctRegex)
$(LI $(REF regex, std,regex) now supports inline comments with (?#...) syntax.)
$(LI std.regex had numerous optimization applied, compile-time $(REF ctRegex, std,regex)
should now be generally faster then the run-time version.)
$(LI $(REF moveAt, std,range,primitives) accepts only `size_t` for its index
arguments.)
Expand All @@ -42,10 +42,10 @@ $(BUGSTITLE Library Changes,
$(LI $(REF readLink, std,file) and $(REF symlink, std,file) have been
rangified.)
$(LI All overloads of `std.conv.toImpl` has been made private. Please use
$(XREF conv, to) instead.)
$(REF to, std,conv) instead.)
$(LI $(RELATIVE_LINK2 min-max-element,
`std.algorithm.searching.{min,max}Element` for ranges have been added.))
$(LI $(XREF Ternary, std,typecons) was added to represent three valued
$(LI $(REF Ternary, std,typecons) was added to represent three valued
logic.)
)

Expand All @@ -60,10 +60,10 @@ $(LI $(LNAME2 process, Process creation in `std.process` was sped up on Posix.)
)
)

$(LI $(LNAME2 std-algorithm-iteration-cumulativeFold, $(XREF algorithm.iteration,
cumulativeFold) was added.)
$(LI $(LNAME2 std-algorithm-iteration-cumulativeFold,
`algorithm.iteration.cumulativeFold` was added.))

$(P $(XREF algorithm.iterator, cumulativeFold) returns the successive
$(P $(REF cumulativeFold, std,algorithm,iteration) returns the successive
reduced values of an input range.)
------
assert([1, 2, 3, 4, 5].cumulativeFold!((a, b) => a + b).array == [1, 3, 6, 10, 15]);
Expand All @@ -73,7 +73,7 @@ assert([1, 2, 3].cumulativeFold!((a, b) => a + b)(100).array == [101, 103, 106])

$(LI $(LNAME2 padLeft-padRight, `std.range.padLeft` and `std.range.padRight`
were added.)
$(P $(XREF range, padLeft) and $(XREF range, padRight) are functions for
$(P $(REF padLeft, std,range) and $(REF padRight, std,range) are functions for
padding ranges to a specified length using the given element.
)

Expand Down Expand Up @@ -102,7 +102,7 @@ assert(m.front[1] == "12");
-------
)

$(LI $(LNAME2 regex-with-matches, $(XREF regex, splitter) now supports keeping the
$(LI $(LNAME2 regex-with-matches, $(REF splitter, std,regex) now supports keeping the
pattern matches in the resulting range.)
-------
import std.regex;
Expand Down Expand Up @@ -203,7 +203,7 @@ $(LI $(LNAME2 mutation, `std.algorithm.mutation.swapAt` was exposed)

$(LI $(LNAME2 iota-length-size_t, `std.range.iota's `.length` property is fixed
to `size_t` instead of the type being iterated)
$(P $(XREF range, iota)'s `.length` property is now always returned as
$(P $(REF iota, std,range)'s `.length` property is now always returned as
`size_t`. This means if you are on a 32-bit CPU and you are using
iota to iterate 64-bit types, the length will be truncated to `size_t`.
In non-release mode, you will get an exception if the length exceeds
Expand All @@ -213,8 +213,8 @@ $(LI $(LNAME2 iota-length-size_t, `std.range.iota's `.length` property is fixed

$(LI $(LNAME2 min-max-element, `std.algorithm.searching.{min,max}Element`
have been added.)
$(P $(XREF algorithm, searching, minElement) and $(XREF algorithm,
searching, maxElement) are functions to search for the minimum and maximum
$(P $(REF minElement, algorithm,searching) and $(REF maxElement,
algorithm,searching) are functions to search for the minimum and maximum
element in a range. They support a custom `map` accessor.
)

Expand Down
8 changes: 4 additions & 4 deletions std/algorithm/comparison.d
Expand Up @@ -79,7 +79,7 @@ Returns:
found value plus one is returned.
See_Also:
$(XREF_PACK_NAMED algorithm,searching,find,find) and $(XREF_PACK_NAMED algorithm,searching,canFind, canFind) for finding a value in a
$(REF_ALTTEXT find, find, std,algorithm,searching) and $(REF_ALTTEXT canFind, canFind, std,algorithm,searching) for finding a value in a
range.
*/
uint among(alias pred = (a, b) => a == b, Value, Values...)
Expand Down 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 Expand Up @@ -1767,7 +1767,7 @@ the benefit of have better complexity than the $(D AllocateGC.no) option. Howeve
this option is only available for ranges whose equality can be determined via each
element's $(D toHash) method. If customized equality is needed, then the $(D pred)
template parameter can be passed, and the function will automatically switch to
the non-allocating algorithm. See $(XREF functional,binaryFun) for more details on
the non-allocating algorithm. See $(REF binaryFun, std,functional) for more details on
how to define $(D pred).
Non-allocating forward range option: $(BIGOH n^2)
Expand Down

0 comments on commit ff854b7

Please sign in to comment.