mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 09:30:49 +03:00
Added mention of narrow string types to splitter ddoc.
This commit is contained in:
parent
035eddda46
commit
f5bdd5730c
1 changed files with 4 additions and 2 deletions
|
@ -1898,7 +1898,8 @@ void swapFront(R1, R2)(R1 r1, R2 r2)
|
|||
// splitter
|
||||
/**
|
||||
Splits a range using an element as a separator. This can be used with
|
||||
any sliceable range type, but is most popular with string types.
|
||||
any narrow string type or sliceable range type, but is most popular
|
||||
with string types.
|
||||
|
||||
Two adjacent separators are considered to surround an empty element in
|
||||
the split range.
|
||||
|
@ -2138,7 +2139,8 @@ unittest
|
|||
|
||||
/**
|
||||
Splits a range using another range as a separator. This can be used
|
||||
with any sliceable range type, but is most popular with string types.
|
||||
with any narrow string type or sliceable range type, but is most popular
|
||||
with string types.
|
||||
*/
|
||||
auto splitter(Range, Separator)(Range r, Separator s)
|
||||
if (is(typeof(Range.init.front == Separator.init.front) : bool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue