MimeGlob.isSuffix - multiple declarations

Function MimeGlob.isSuffix

Member version of static isSuffix. Uses pattern as argument.

bool isSuffix() pure nothrow @nogc @safe const;

Example

auto mimeGlob = MimeGlob("*.txt");
assert(mimeGlob.isSuffix());

Function MimeGlob.isSuffix

Check if glob pattern is suffix, i.e. starts with '*' and does not have special glob match characters in the rest of pattern.

static bool isSuffix (
  scope string pattern
) pure nothrow @nogc @safe;

Example

assert(isSuffix("*.jpg"));
assert(!isSuffix(""));
assert(!isSuffix("*"));
assert(!isSuffix("*dir[0-9]"));