determineCommentType

Undocumented in source. Be warned that the author may not have intended to support it.
pure nothrow @safe
determineCommentType
(
string comment
)

Examples

assert (determineCommentType("/// hello") == CommentType.docLine);
assert (determineCommentType("/++ hello") == CommentType.docBlock);
assert (determineCommentType("/** hello") == CommentType.docBlock);
assert (determineCommentType("// hello") == CommentType.normalLine);
assert (determineCommentType("/+ hello") == CommentType.normalBlock);
assert (determineCommentType("/* hello") == CommentType.normalBlock);
assert (determineCommentType("/ hello") == CommentType.none);
assert (determineCommentType("/") == CommentType.none);

assert (determineCommentType("////////////////////") == CommentType.normalLine);
assert (determineCommentType("///") == CommentType.docLine);
assert (determineCommentType("///   ") == CommentType.docLine);

Meta