rlib
Convenience library for useful things
Loading...
Searching...
No Matches
RStrMatchResult Struct Reference

Result of r_str_match_pattern. More...

#include <rlib/rstr.h>

Data Fields

rcharptr
 
rcharend
 
rsize tokens
 
RStrMatchToken token [0]
 

Detailed Description

Result of r_str_match_pattern.

Variable-length: the token array is a flexible member sized to tokens entries. Allocated by the matcher; caller r_free's.

Field Documentation

◆ end

rchar* RStrMatchResult::end

Pointer one past the last matched byte.

◆ ptr

rchar* RStrMatchResult::ptr

Pointer into the input where the match starts.

◆ token

RStrMatchToken RStrMatchResult::token[0]

Per-token match spans.

◆ tokens

rsize RStrMatchResult::tokens

Number of entries in token.


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