findSplitAmong

Like findSplit but with multiple separator needles known at compile-time to prevent NarrowString decoding.

TODO: Resort to memchr for some case if (!__ctfe).

template findSplitAmong(needles...)
@trusted
findSplitAmong
(
Haystack
)
(
const scope return Haystack haystack
)
if (
is(typeof(Haystack.init[0 .. 0])) &&
is(typeof(Haystack.init[0]) : char)
&&
allSatisfy!(isASCII, needles)
)
if (
needles.length != 0 &&
isExpressions!needles
)

Members

Functions

findSplitAmong
auto findSplitAmong(Haystack haystack)
Undocumented in source. Be warned that the author may not have intended to support it.

See Also

Meta