libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
Loading...
Searching...
No Matches
snobol_literal_match Struct Reference

Lightweight result from snobol_pattern_match_literal(). More...

#include <snobol.h>

Public Attributes

bool success
size_t position
size_t length

Detailed Description

Lightweight result from snobol_pattern_match_literal().

Zero heap allocations — returned by value. Only valid for patterns whose bytecode is a single anchored literal (e.g. "'abc'").

Definition at line 473 of file snobol.h.

Member Data Documentation

◆ length

size_t snobol_literal_match::length

Byte length of the matched literal.

Definition at line 476 of file snobol.h.

◆ position

size_t snobol_literal_match::position

Match start position (always 0 on success).

Definition at line 475 of file snobol.h.

◆ success

bool snobol_literal_match::success

Whether the literal matched at position 0.

Definition at line 474 of file snobol.h.


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