prefix_cmp() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

prefix_cmp() function

Returns bytes matched if 'pattern' is a prefix of 'string'. If 'nocase' is non-zero, does a case-insensitive match. Returns -1 on not found.

Syntax

static int prefix_cmp(const int *prog,     int proglen,     const char *string,     int nocase);
Implemented in jimregexp.c:1249

Arguments

prog

proglen

string

nocase

References

LocationReferrerText
jimregexp.c:1249
static int prefix_cmp(const int *prog, int proglen, const char *string, int nocase)
jimregexp.c:197
static int prefix_cmp(const int *prog, int proglen, const char *string, int nocase);
jimregexp.c:1155jim_regexec()
if (prefix_cmp(preg->program + preg->regmust, preg->regmlen, s, preg->cflags & REG_ICASE) >= 0) {
jimregexp.c:1526regmatch()
slen = prefix_cmp(preg->program + opnd, len, preg->reginput, preg->cflags & REG_ICASE);

Call Tree

Functions calling prefix_cmp()
Functions called by prefix_cmp()
all items filtered out
prefix_cmp()
all items filtered out
Data read by prefix_cmp()
Data written by prefix_cmp()
prefix_cmp()::s
prefix_cmp()::ch
prefix_cmp()::n
all items filtered out
prefix_cmp()
prefix_cmp()::s
all items filtered out