Function isComment

Test whether the string represents a comment.

bool isComment (
  scope const(char)[] s
) pure nothrow @nogc @safe;

Example

assert( isComment("# Comment"));
assert( isComment("   # Comment"));
assert(!isComment("Not comment"));
assert(!isComment(""));