Lines Matching defs:text
127 kwsincr (kwset_t kws, char const *text, size_t len)
140 text += len;
146 label = kwset->trans ? kwset->trans[(unsigned char) *--text] : *--text;
495 bmexec (kwset_t kws, char const *text, size_t size)
511 tp = memchr (text, kwset->target[0], size);
512 return tp ? tp - text : -1;
519 tp = text + len;
524 for (ep = text + size - 11 * len;;)
552 return tp - len - text;
559 ep = text + size;
571 return tp - len - text;
581 cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch)
606 lim = text + len;
607 end = text;
612 mch = text, accept = kwset->trie;
646 while (beg > text)
697 while (beg > text)
731 kwsmatch->offset[0] = mch - text;
734 return mch - text;
737 /* Search through the given text for a match of any member of the
745 kwsexec (kwset_t kws, char const *text, size_t size,
751 size_t ret = bmexec (kws, text, size);
761 return cwexec(kws, text, size, kwsmatch);