skipOverAround

Undocumented in source. Be warned that the author may not have intended to support it.
  1. bool skipOverAround(inout(T)[] haystack, T[] needleFront, T[] needleBack)
    @trusted
    bool
    skipOverAround
    (
    T
    )
    (
    scope ref inout(T)[] haystack
    ,
    scope const T[] needleFront
    ,
    scope const T[] needleBack
    )
  2. bool skipOverAround(inout(T)[] haystack, T needleFront, T needleBack)
  3. bool startsWith(T[] haystack, T[] needle)
  4. bool startsWith(T[] haystack, T needle)

Examples

string x = "alpha beta_gamma";
assert(x.skipOverAround("alpha", "gamma"));
assert(x == " beta_");
assert(x.skipOverAround(' ', '_'));
assert(x == "beta");

Meta