isDot

Whether str can be represented by ".".

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

Examples

1 assert("".isDot);
2 assert(".".isDot);
3 assert("./".isDot);
4 assert("./.".isDot);
5 assert("././".isDot);
6 assert(!"/".isDot);
7 assert(!"hello".isDot);
8 assert(!".git".isDot);

Meta