skip_ex

Undocumented in source.

Members

Aliases

skipBacks
alias skipBacks = skipOverBack
Undocumented in source.
skipFronts
alias skipFronts = skipOver
Undocumented in source.

Functions

skipOverBack
bool skipOverBack(R1 r1, R2 r2)

If startsWith(r1, r2), consume the corresponding elements off r1 and return true. Otherwise, leave r1 unchanged and return false.

skipOverBackShortestOf
size_t skipOverBackShortestOf(Range haystack, Ranges needles)
Undocumented in source. Be warned that the author may not have intended to support it.
skipOverEither
size_t skipOverEither(Range haystack, Ranges needles)

Variadic Version of skipOver.

skipOverLongestOf
Tuple!(bool, size_t) skipOverLongestOf(Range haystack, Ranges needles)

Skip Over Longest Matching prefix in needles that prefixes haystack.

skipOverPrefixes
void skipOverPrefixes(R s, A prefixes)

Drop prefixes in s. TODO Use multi-argument skipOver when it becomes available http://forum.dlang.org/thread/bug-12335-3@https.d.puremagic.com%2Fissues%2F

skipOverShortestOf
size_t skipOverShortestOf(Range haystack, Ranges needles)

Skip Over Shortest Matching prefix in needles that prefixes haystack. TODO Make return value a specific type that has bool conversion so we can call it as if (auto hit = r.skipOverShortestOf(...)) { ... }

skipOverSuffixes
void skipOverSuffixes(R s, A suffixes)

Drop suffixes in s.

Meta