Searched refs:anchored (Results 1 - 9 of 9) sorted by relevance
/third_party/rust/crates/aho-corasick/src/ |
H A D | automaton.rs | 89 /// Returns true if and only if this automaton uses anchored searches. 90 fn anchored(&self) -> bool; in anchored() functions 241 // we have an anchored automaton, in which case, dead states in standard_find_at_imp() 244 *state_id != dead_id() || self.anchored(), in standard_find_at_imp() 303 if self.anchored() && at > 0 && *state_id == self.start_state() { in leftmost_find_at_imp() 339 // (Unless we have an anchored automaton, in which case, in leftmost_find_at_imp() 342 last_match.is_some() || self.anchored(), in leftmost_find_at_imp() 401 if self.anchored() && at > 0 { in leftmost_find_at_no_state_imp() 408 // We should never have a prefilter during an anchored search. in leftmost_find_at_no_state_imp() 409 debug_assert!(!self.anchored()); in leftmost_find_at_no_state_imp() [all...] |
H A D | dfa.rs | 159 fn anchored(&self) -> bool { in anchored() functions 160 self.repr().anchored in anchored() 218 fn anchored(&self) -> bool { in anchored() functions 219 self.repr().anchored in anchored() 279 fn anchored(&self) -> bool { in anchored() functions 280 self.repr().anchored in anchored() 346 fn anchored(&self) -> bool { in anchored() functions 347 self.repr().anchored in anchored() 401 anchored: bool, 634 anchored in build() [all...] |
H A D | nfa.rs | 64 anchored: bool, 196 fail: if self.anchored { dead_id() } else { self.start_id }, in add_dense_state() 209 fail: if self.anchored { dead_id() } else { self.start_id }, in add_sparse_state() 224 fn anchored(&self) -> bool { in anchored() functions 225 self.anchored in anchored() 542 anchored: bool, 552 anchored: false, in default() 586 pub fn anchored(&mut self, yes: bool) -> &mut Builder { in anchored() functions 587 self.anchored = yes; in anchored() 621 anchored in new() [all...] |
H A D | tests.rs | 49 /// Tests for Aho-Corasick's anchored standard non-overlapping match semantics. 57 /// Tests for Aho-Corasick's anchored standard overlapping match semantics. 65 /// Tests for Aho-Corasick's anchored leftmost-first match semantics. 77 /// Tests for Aho-Corasick's anchored leftmost-longest match semantics. 148 /// A collection of *anchored* tests for the Aho-Corasick algorithm that should 190 /// Like STANDARD, but for anchored searches. 260 /// Like LEFTMOST, but for anchored searches. 343 /// Like LEFTMOST_FIRST, but for anchored searches. 396 /// Like LEFTMOST_LONGEST, but for anchored searches. 442 /// Like NON_OVERLAPPING, but for anchored searche [all...] |
H A D | ahocorasick.rs | 1749 /// Enable anchored mode, which requires all matches to start at the 1765 /// .anchored(true) 1780 /// .anchored(true) 1783 /// // A non-anchored search would return 3 matches. 1785 pub fn anchored(&mut self, yes: bool) -> &mut AhoCorasickBuilder { in anchored() functions 1786 self.nfa_builder.anchored(yes); in anchored()
|
/third_party/mksh/ |
H A D | histrap.c | 415 bool anchored = *str == '?' ? (++str, false) : true; in hist_get() local 419 anchored)) < 0) in hist_get() 483 findhist(int start, const char *str, bool fwd, bool anchored) in findhist() argument 495 if ((anchored && strncmp(*hp, str, len) == 0) || in findhist() 496 (!anchored && strstr(*hp, str))) in findhist()
|
H A D | edit.c | 2032 /* anchored search up from current line */ 2039 /* anchored search down from current line */ 2046 /* anchored search in the indicated direction */ 5152 bool anchored; in grabsearch() local 5160 anchored = *pat == '^' ? (++pat, true) : false; in grabsearch() 5161 if ((hist = findhist(start, pat, fwd, anchored)) < 0) { in grabsearch()
|
/third_party/pcre2/pcre2/src/ |
H A D | pcre2_dfa_match.c | 459 external one, possibly multiple times if the pattern is not anchored. The 3311 BOOL utf, anchored, startline, firstline; in pcre2_dfa_match() local 3420 anchored = (options & (PCRE2_ANCHORED|PCRE2_DFA_RESTART)) != 0 || in pcre2_dfa_match() 3642 /* Call the main matching function, looping for a non-anchored regex after a in pcre2_dfa_match() 3689 if (anchored) in pcre2_dfa_match() 3710 /* Not anchored. Advance to a unique first code unit if there is one. */ in pcre2_dfa_match() 3911 (!anchored && check_length < REQ_CU_MAX * 1000)) in pcre2_dfa_match() 3988 on only if not anchored. */ in pcre2_dfa_match() 3990 if (rc != PCRE2_ERROR_NOMATCH || anchored) in pcre2_dfa_match()
|
H A D | pcre2_match.c | 6320 BOOL anchored; in pcre2_match() local 6721 anchored = ((re->overall_options | options) & PCRE2_ANCHORED) != 0; in pcre2_match() 6915 /* Loop for handling unanchored repeated matching attempts; for anchored regexs in pcre2_match() 6971 if (anchored) in pcre2_match() 6996 /* Not anchored. Advance to a unique first code unit if there is one. */ in pcre2_match() 7195 anchored patterns. This showed up when somebody was matching something in pcre2_match() 7206 (!anchored && check_length < REQ_CU_MAX * 1000)) in pcre2_match() 7365 /* Break the loop if the pattern is anchored or if we have passed the end of in pcre2_match() 7368 if (anchored || start_match > end_subject) break; in pcre2_match() 7396 (2) The pattern is anchored o in pcre2_match() [all...] |
Completed in 24 milliseconds