ctfeFindSection

private fnstring ctfeFindSection(string name, string source) @safe pure

Extracts a section block (e.g. "usage:" or "options:") from a doc string.

The search is case-insensitive and operates purely on slices so it can run during CTFE. The returned string is trimmed of leading/trailing whitespace.

Parameters

nameSection name, including trailing colon (e.g. "usage:").
sourceDocumentation text.

Returns

The matched section text or an empty string if not found.