solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
Public Attributes | List of all members
regex_span_t Struct Reference

#include <regex.h>

Public Attributes

size_t start
 
size_t end
 

Detailed Description

A single captured substring span within a subject string.

Both offsets are byte positions, not character positions, unless REGEX_FLAG_UTF is set, in which case they are still byte positions but will align to UTF-8 character boundaries.

Definition at line 101 of file regex.h.

Member Data Documentation

◆ end

size_t regex_span_t::end

Byte offset one past the last character.

Definition at line 103 of file regex.h.

Referenced by regex_iter_next().

◆ start

size_t regex_span_t::start

Byte offset of the first character of the match.

Definition at line 102 of file regex.h.


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