Lines Matching defs:str

424  * aa_dfa_match_len - traverse @dfa to find state @str stops at
425 * @dfa: the dfa to match @str against (NOT NULL)
427 * @str: the string of bytes to match against the dfa (NOT NULL)
430 * aa_dfa_match_len will match @str against the dfa and return the state it
440 const char *str, int len)
451 /* current state is <state>, matching character *str */
457 equiv[(u8) *str++]);
461 match_char(state, def, base, next, check, (u8) *str++);
468 * aa_dfa_match - traverse @dfa to find state @str stops at
469 * @dfa: the dfa to match @str against (NOT NULL)
471 * @str: the null terminated string of bytes to match against the dfa (NOT NULL)
473 * aa_dfa_match will match @str against the dfa and return the state it
480 const char *str)
491 /* current state is <state>, matching character *str */
496 while (*str)
498 equiv[(u8) *str++]);
501 while (*str)
502 match_char(state, def, base, next, check, (u8) *str++);
526 /* current state is <state>, matching character *str */
556 * @dfa: the dfa to match @str against (NOT NULL)
558 * @str: the null terminated string of bytes to match against the dfa (NOT NULL)
559 * @retpos: first character in str after match OR end of string
561 * aa_dfa_match will match @str against the dfa and return the state it
568 const char *str, const char **retpos)
580 /* current state is <state>, matching character *str */
585 while (*str) {
586 pos = base_idx(base[state]) + equiv[(u8) *str++];
596 while (*str) {
597 pos = base_idx(base[state]) + (u8) *str++;
607 *retpos = str;
613 * @dfa: the dfa to match @str against (NOT NULL)
615 * @str: the string of bytes to match against the dfa (NOT NULL)
617 * @retpos: first character in str after match OR str + n
619 * aa_dfa_match_len will match @str against the dfa and return the state it
629 const char *str, int n, const char **retpos)
642 /* current state is <state>, matching character *str */
648 pos = base_idx(base[state]) + equiv[(u8) *str++];
659 pos = base_idx(base[state]) + (u8) *str++;
669 *retpos = str;
704 const char *str, struct match_workbuf *wb,
714 AA_BUG(!str);
722 /* current state is <state>, matching character *str */
727 while (*str) {
731 pos = base_idx(base[state]) + equiv[(u8) *str++];
737 state = aa_dfa_match(dfa, state, str);
746 while (*str) {
750 pos = base_idx(base[state]) + (u8) *str++;
756 state = aa_dfa_match(dfa, state, str);
772 * aa_dfa_leftmatch - traverse @dfa to find state @str stops at
773 * @dfa: the dfa to match @str against (NOT NULL)
775 * @str: the null terminated string of bytes to match against the dfa (NOT NULL)
778 * aa_dfa_match will match @str against the dfa and return the state it
785 const char *str, unsigned int *count)
791 return leftmatch_fb(dfa, start, str, &wb, count);