MimeGlob.isLiteral - multiple declarations

Function MimeGlob.isLiteral

Member version of static isLiteral. Uses pattern as argument.

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

Example

auto mimeGlob = MimeGlob("Makefile");
assert(mimeGlob.isLiteral());

Function MimeGlob.isLiteral

Check if glob pattern is literal, i.e. does not have special glob match characters.

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

Example

assert(isLiteral("Makefile"));
assert(!isLiteral(""));
assert(!isLiteral("pak[0-9].pak"));