|
libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
|
Result from the one-shot snobol_match() convenience API. More...
#include <snobol.h>
Public Attributes | |
| bool | success |
| char * | error |
| char * | output |
| size_t | output_len |
| char ** | captures |
| size_t * | capture_lens |
| int | capture_count |
Result from the one-shot snobol_match() convenience API.
Unlike the opaque snobol_match_t (which is used by the multi-step API), this struct is non-opaque so callers can directly read the fields.
| int snobol_match_result::capture_count |
| size_t* snobol_match_result::capture_lens |
| char** snobol_match_result::captures |
Captured variable values (index 0 = variable "1", etc.). Each entry is a malloc'd NUL-terminated string (or NULL if not set). Freed by snobol_match_result_free().
| char* snobol_match_result::error |
Malloc'd error message (NULL on success); caller must free via snobol_match_result_free().
| char* snobol_match_result::output |
Output buffer from OP_EMIT_* instructions (owned, freed by snobol_match_result_free()).
| size_t snobol_match_result::output_len |
| bool snobol_match_result::success |