MimeGlob.isLiteral

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

  1. bool isLiteral()
  2. bool isLiteral(string pattern)
    struct MimeGlob
    @nogc @safe static nothrow pure
    bool
    isLiteral
    (
    scope string pattern
    )

Examples

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

Meta