coan 4.2.4
|
![]() |
Files | |
file | lexicon.c |
Functions | |
static int | text_match (char const **ptxt, char const *match, size_t nbytes) |
static int text_match | ( | char const ** | ptxt, |
char const * | match, | ||
size_t | nbytes | ||
) | [static] |
Compare text in the line buffer with a reference string, ignoring line-continuations in the line buffer.
ptxt | On entry, a pointer to an address in line buffer at which to compare text to the reference string. On return, stores the address of the first byte in the line buffer not consumed by the in the matched text, if the text is matched within nbytes bytes; otherwise unchanged. |
match | The reference string to match. |
nbytes | The maximum number of bytes that may be compared. If 0 then defaults to strlen(match) . |
nbytes
bytes. 1 the text compares greater, -1 if the text compares less. Definition at line 65 of file lexicon.c.
References chew_continuation().
Referenced by match_keyword().