Function isGroupHeader

Test whether the string represents a group header.

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

Note

"[]" is not considered to be a valid group header.

Example

assert( isGroupHeader("[Group]"));
assert( isGroupHeader("[Group]    "));
assert(!isGroupHeader("[]"));
assert(!isGroupHeader("[Group"));
assert(!isGroupHeader("Group]"));