MimeGlob.isGenericGlob - multiple declarations

Function MimeGlob.isGenericGlob

Member version of static isGenericGlob. Uses pattern as argument.

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

Example

auto mimeGlob = MimeGlob("lib*.so.[0-9]");
assert(mimeGlob.isGenericGlob());

Function MimeGlob.isGenericGlob

Check if glob pattern is something else besides literal and suffix.

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

Example

assert(isGenericGlob("lib*.so"));
assert(isGenericGlob("*dir[0-9]"));
assert(!isGenericGlob(""));
assert(!isGenericGlob("Makefile"));
assert(!isGenericGlob("*.bmp"));
}