Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

parseTableHeaderDelimiter

Parser.parseTableHeaderDelimiter
fn parseTableHeaderDelimiter(
    row_cells: []const []const u8,
    buffer: []Node.TableCellAlignment,
) ?[]Node.TableCellAlignment

File

Code

fn parseTableHeaderDelimiter(
    row_cells: []const []const u8,
    buffer: []Node.TableCellAlignment,
) ?[]Node.TableCellAlignment {
    var alignments: ArrayList(Node.TableCellAlignment) = .initBuffer(buffer);
    for (row_cells) |content| {
        const alignment = parseTableHeaderDelimiterCell(content) orelse return null;
        alignments.appendAssumeCapacity(alignment);
    }
    return alignments.items;
}