mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Merge branch 'master' of github.com:D-Programming-Language/phobos into fewer-imports
This commit is contained in:
commit
edddfa2455
13 changed files with 28 additions and 260 deletions
|
@ -2900,9 +2900,9 @@ unittest
|
|||
assert(equal(splitter!"a=='本'"("日本語"), ["日", "語"]));
|
||||
}
|
||||
|
||||
//Explicitly undocumented. It will be removed in December 2014.
|
||||
//@@@6730@@@ This exists already in std.array, so this declaration, at best, will only create ambiguity.
|
||||
//unfortunatly, an alias will conflict with the existing splitter in std.algorithm.
|
||||
//It needs to be removed.
|
||||
//unfortunately, an alias will conflict with the existing splitter in std.algorithm.
|
||||
deprecated("Please use std.array.splitter for string specific splitting")
|
||||
auto splitter(Range)(Range input)
|
||||
if (isSomeString!Range)
|
||||
|
@ -5213,14 +5213,6 @@ unittest
|
|||
}
|
||||
}
|
||||
|
||||
// Explicitly undocumented. It will be removed in November 2013.
|
||||
deprecated("Please use std.algorithm.countUntil instead.")
|
||||
ptrdiff_t indexOf(alias pred = "a == b", R1, R2)(R1 haystack, R2 needle)
|
||||
if (is(typeof(startsWith!pred(haystack, needle))))
|
||||
{
|
||||
return countUntil!pred(haystack, needle);
|
||||
}
|
||||
|
||||
/**
|
||||
Interval option specifier for $(D until) (below) and others.
|
||||
*/
|
||||
|
@ -10666,9 +10658,8 @@ was succesful.
|
|||
+/
|
||||
template canFind(alias pred="a == b")
|
||||
{
|
||||
//Explictly Undocumented. Do not use. It may be deprecated in the future.
|
||||
//Use any instead.
|
||||
bool canFind(Range)(Range haystack)
|
||||
//Explictly Undocumented. It will be removed in December 2014.
|
||||
deprecated("Please use any instead.") bool canFind(Range)(Range haystack)
|
||||
if (is(typeof(find!pred(haystack))))
|
||||
{
|
||||
return any!pred(haystack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue