isComment

Test whether the string represents a comment.

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

Examples

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

Meta