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

One token of a parsed scan pattern. More...

#include <rlib/rmem.h>

Data Fields

RMemTokenType type
 
const rcharpattern
 
RMemChunk chunk
 

Detailed Description

One token of a parsed scan pattern.

type identifies the token class; pattern points back at the pattern string for the token's text; chunk locates the matching bytes inside the haystack once the scan succeeds.

Field Documentation

◆ chunk

RMemChunk RMemScanToken::chunk

Matched bytes inside the haystack.

◆ pattern

const rchar* RMemScanToken::pattern

Borrowed pointer into the original pattern string.

◆ type

RMemTokenType RMemScanToken::type

Token class.


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