mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 09:30:49 +03:00
13 lines
407 B
Text
13 lines
407 B
Text
`std.algorithm.searching.skipOver` can now handle variadic arguments
|
|
|
|
$(REF skipOver, std,algorithm) which allows to move over a needle if it matches
|
|
now accepts variadic arguments for needles to skip over:
|
|
|
|
---
|
|
auto s = "DLang.rocks";
|
|
assert(!s.skipOver("dlang", "DLF", "DLang "));
|
|
assert(s == "DLang.rocks");
|
|
|
|
assert(s.skipOver("dlang", "DLANG", "DLF", "D", "DL", "DLanp"));
|
|
assert(s == "ang.rocks");
|
|
---
|