isDot

Whether str can be represented by ".".

  1. bool isDot(StringType str)
    bool
    isDot
    (
    StringType
    )
    (
    auto ref in StringType str
    )
    if (
    isSomeString!StringType
    )
  2. auto isDot(PathType p)

Examples

assert("".isDot);
assert(".".isDot);
assert("./".isDot);
assert("./.".isDot);
assert("././".isDot);
assert(!"/".isDot);
assert(!"hello".isDot);
assert(!".git".isDot);

Meta