mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 22:21:09 +03:00
Add more links to std.range definitions
This commit is contained in:
parent
28ec0910e7
commit
9d2ee3d9c0
3 changed files with 24 additions and 15 deletions
14
std/array.d
14
std/array.d
|
@ -344,7 +344,9 @@ if (isNarrowString!String)
|
||||||
/**
|
/**
|
||||||
Returns a newly allocated associative _array from a range of key/value tuples.
|
Returns a newly allocated associative _array from a range of key/value tuples.
|
||||||
|
|
||||||
Params: r = An input range of tuples of keys and values.
|
Params:
|
||||||
|
r = An $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
|
||||||
|
of tuples of keys and values.
|
||||||
Returns: A newly allocated associative array out of elements of the input
|
Returns: A newly allocated associative array out of elements of the input
|
||||||
range, which must be a range of tuples (Key, Value). Returns a null associative
|
range, which must be a range of tuples (Key, Value). Returns a null associative
|
||||||
array reference when given an empty range.
|
array reference when given an empty range.
|
||||||
|
@ -410,8 +412,8 @@ Construct a range iterating over an associative array by key/value tuples.
|
||||||
|
|
||||||
Params: aa = The associative array to iterate over.
|
Params: aa = The associative array to iterate over.
|
||||||
|
|
||||||
Returns: A forward range of Tuple's of key and value pairs from the given
|
Returns: A $(REF_ALTTEXT forward range, isForwardRange, std,_range,primitives)
|
||||||
associative array.
|
of Tuple's of key and value pairs from the given associative array.
|
||||||
*/
|
*/
|
||||||
auto byPair(Key, Value)(Value[Key] aa)
|
auto byPair(Key, Value)(Value[Key] aa)
|
||||||
{
|
{
|
||||||
|
@ -836,7 +838,8 @@ private void copyBackwards(T)(T[] src, T[] dest)
|
||||||
Params:
|
Params:
|
||||||
array = The array that $(D stuff) will be inserted into.
|
array = The array that $(D stuff) will be inserted into.
|
||||||
pos = The position in $(D array) to insert the $(D stuff).
|
pos = The position in $(D array) to insert the $(D stuff).
|
||||||
stuff = An input range, or any number of implicitly convertible items to insert into $(D array).
|
stuff = An $(REF_ALTTEXT input range, isInputRange, std,range,primitives),
|
||||||
|
or any number of implicitly convertible items to insert into $(D array).
|
||||||
+/
|
+/
|
||||||
void insertInPlace(T, U...)(ref T[] array, size_t pos, U stuff)
|
void insertInPlace(T, U...)(ref T[] array, size_t pos, U stuff)
|
||||||
if (!isSomeString!(T[])
|
if (!isSomeString!(T[])
|
||||||
|
@ -1563,7 +1566,8 @@ private enum bool hasCheapIteration(R) = isArray!R;
|
||||||
into one array using `sep` as the separator if present.
|
into one array using `sep` as the separator if present.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
ror = An input range of input ranges
|
ror = An $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
|
||||||
|
of input ranges
|
||||||
sep = An input range, or a single element, to join the ranges on
|
sep = An input range, or a single element, to join the ranges on
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
|
@ -1877,7 +1877,7 @@ This overload converts an character input range to a `bool`.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
Target = the type to convert to
|
Target = the type to convert to
|
||||||
source = the lvalue of an input range
|
source = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
A `bool`
|
A `bool`
|
||||||
|
@ -1972,7 +1972,8 @@ Lerr:
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Parses a character input range to an integral value.
|
Parses a character $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
|
||||||
|
to an integral value.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
Target = the integral type to convert to
|
Target = the integral type to convert to
|
||||||
|
@ -3237,7 +3238,7 @@ Parsing one character off a range returns the first element and calls `popFront`
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
Target = the type to convert to
|
Target = the type to convert to
|
||||||
s = the lvalue of an input range
|
s = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
A character of type `Target`
|
A character of type `Target`
|
||||||
|
@ -3339,7 +3340,7 @@ spells `"null"`. This function is case insensitive.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
Target = the type to convert to
|
Target = the type to convert to
|
||||||
s = the lvalue of an input range
|
s = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
`null`
|
`null`
|
||||||
|
|
16
std/string.d
16
std/string.d
|
@ -2861,7 +2861,8 @@ if (isConvertibleToString!Range)
|
||||||
Strips leading whitespace (as defined by $(REF isWhite, std,uni)).
|
Strips leading whitespace (as defined by $(REF isWhite, std,uni)).
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
input = string or ForwardRange of characters
|
input = string or $(REF_ALTTEXT forward range, isForwardRange, std,range,primitives)
|
||||||
|
of characters
|
||||||
|
|
||||||
Returns: $(D input) stripped of leading whitespace.
|
Returns: $(D input) stripped of leading whitespace.
|
||||||
|
|
||||||
|
@ -3414,7 +3415,8 @@ if (isConvertibleToString!Range)
|
||||||
$(D delimiter), then it is returned unchanged.
|
$(D delimiter), then it is returned unchanged.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
str = string or forward range of characters
|
str = string or $(REF_ALTTEXT forward range, isForwardRange, std,range,primitives)
|
||||||
|
of characters
|
||||||
delimiter = string of characters to be sliced off front of str[]
|
delimiter = string of characters to be sliced off front of str[]
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
@ -3840,7 +3842,8 @@ if (isSomeString!S)
|
||||||
$(D s) doesn't fill.
|
$(D s) doesn't fill.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
r = string or forward range of characters
|
r = string or $(REF_ALTTEXT forward range, isForwardRange, std,range,primitives)
|
||||||
|
of characters
|
||||||
width = minimum field width
|
width = minimum field width
|
||||||
fillChar = used to pad end up to $(D width) characters
|
fillChar = used to pad end up to $(D width) characters
|
||||||
|
|
||||||
|
@ -4066,7 +4069,8 @@ unittest
|
||||||
$(D r) doesn't fill.
|
$(D r) doesn't fill.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
r = string or forward range of characters
|
r = string or $(REF_ALTTEXT forward range, isForwardRange, std,range,primitives)
|
||||||
|
of characters
|
||||||
width = minimum field width
|
width = minimum field width
|
||||||
fillChar = used to pad end up to $(D width) characters
|
fillChar = used to pad end up to $(D width) characters
|
||||||
|
|
||||||
|
@ -4226,7 +4230,7 @@ if ((isForwardRange!Range && isSomeChar!(ElementEncodingType!Range))
|
||||||
necessary to align the following character at the next tab stop.
|
necessary to align the following character at the next tab stop.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
r = string or forward range
|
r = string or $(REF_ALTTEXT forward range, isForwardRange, std,range,primitives)
|
||||||
tabSize = distance between tab stops
|
tabSize = distance between tab stops
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
@ -4455,7 +4459,7 @@ if (!(isForwardRange!Range && isSomeChar!(ElementEncodingType!Range)) &&
|
||||||
All spaces and tabs at the end of a line are removed.
|
All spaces and tabs at the end of a line are removed.
|
||||||
|
|
||||||
Params:
|
Params:
|
||||||
r = string or forward range
|
r = string or $(REF_ALTTEXT forward range, isForwardRange, std,range,primitives)
|
||||||
tabSize = distance between tab stops
|
tabSize = distance between tab stops
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue