Function parseGroupHeader

Retrieve group name from header entry.

auto inout(char)[] parseGroupHeader (
  inout(char)[] s
) pure nothrow @nogc @safe;

Returns

group name or empty string if the entry is not group header.

Example

assert(parseGroupHeader("[Group name]") == "Group name");
assert(parseGroupHeader("NotGroupName") == string.init);

assert(parseGroupHeader("[Group name]".dup) == "Group name".dup);