ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
parsed_section_t Struct Reference

Owned slice of a parsed roff man-page section. More...

#include <include/ascii-chat/options/manpage.h>

Data Fields

char * section_name
 Section name (e.g., "ENVIRONMENT", "OPTIONS").
section_type_t type
 Section type (AUTO/MANUAL/MERGE/UNMARKED).
char * content
 Full section content (including .SH header).
size_t content_len
 Length of content.
size_t start_line
 Line number where section starts (1-based).
size_t end_line
 Line number where section ends (1-based).
bool has_markers
 True if marked with AUTO/MANUAL/MERGE markers.

Detailed Description

Owned slice of a parsed roff man-page section.

The parser copies the section name and complete section text, records the source line range, and marks whether AUTO, MANUAL, or MERGE directives were found. The section array and both allocated strings are released together by the man-page parser free function.

Definition at line 44 of file manpage.h.

Field Documentation

◆ content

char* parsed_section_t::content

Full section content (including .SH header).

Definition at line 47 of file manpage.h.

◆ content_len

size_t parsed_section_t::content_len

Length of content.

Definition at line 48 of file manpage.h.

◆ end_line

size_t parsed_section_t::end_line

Line number where section ends (1-based).

Definition at line 50 of file manpage.h.

◆ has_markers

bool parsed_section_t::has_markers

True if marked with AUTO/MANUAL/MERGE markers.

Definition at line 51 of file manpage.h.

◆ section_name

char* parsed_section_t::section_name

Section name (e.g., "ENVIRONMENT", "OPTIONS").

Definition at line 45 of file manpage.h.

◆ start_line

size_t parsed_section_t::start_line

Line number where section starts (1-based).

Definition at line 49 of file manpage.h.

◆ type

section_type_t parsed_section_t::type

Section type (AUTO/MANUAL/MERGE/UNMARKED).

Definition at line 46 of file manpage.h.


The documentation for this struct was generated from the following file: