coan 4.2.4
The Lexicon component internals.
Collaboration diagram for The Lexicon component internals.:

Files

file  lexicon.c

Functions

static int text_match (char const **ptxt, char const *match, size_t nbytes)

Function Documentation

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.

Parameters:
ptxtOn 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.
matchThe reference string to match.
nbytesThe maximum number of bytes that may be compared. If 0 then defaults to strlen(match).
Returns:
0 if the text compares lexicographically equal to the reference string within 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().

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines