MimeGlob.isGenericGlob

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

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

Examples

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

Meta