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

Match result object. More...

#include <snobol.h>

Public Attributes

bool success
char * output
size_t output_len
const char * var_subject
size_t var_off [SNOBOL_API_MAX_VARS]
size_t var_len [SNOBOL_API_MAX_VARS]
char * var_values [SNOBOL_API_MAX_VARS]
size_t var_lens [SNOBOL_API_MAX_VARS]
int var_count
size_t position
size_t length

Detailed Description

Match result object.

Contains the result of a successful pattern match, including captured variables and output buffer. Use snobol_match_create() to allocate, snobol_match_free() to release.

Definition at line 221 of file snobol.h.

Member Data Documentation

◆ length

size_t snobol_match::length

Definition at line 248 of file snobol.h.

◆ output

char* snobol_match::output

Definition at line 225 of file snobol.h.

◆ output_len

size_t snobol_match::output_len

Definition at line 226 of file snobol.h.

◆ position

size_t snobol_match::position

Definition at line 247 of file snobol.h.

◆ success

bool snobol_match::success

Definition at line 222 of file snobol.h.

◆ var_count

int snobol_match::var_count

Definition at line 244 of file snobol.h.

◆ var_len

size_t snobol_match::var_len[SNOBOL_API_MAX_VARS]

Definition at line 241 of file snobol.h.

◆ var_lens

size_t snobol_match::var_lens[SNOBOL_API_MAX_VARS]

Definition at line 243 of file snobol.h.

◆ var_off

size_t snobol_match::var_off[SNOBOL_API_MAX_VARS]

Definition at line 240 of file snobol.h.

◆ var_subject

const char* snobol_match::var_subject

Definition at line 239 of file snobol.h.

◆ var_values

char* snobol_match::var_values[SNOBOL_API_MAX_VARS]

Definition at line 242 of file snobol.h.


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