Searched refs:pattern_length (Results 1 – 3 of 3) sorted by relevance
/third_party/node/src/ |
D | string_search.h | 99 size_t pattern_length = pattern_.length(); in StringSearch() local 100 CHECK_GT(pattern_length, 0); in StringSearch() 101 if (pattern_length < kBMMinPatternLength) { in StringSearch() 102 if (pattern_length == 1) { in StringSearch() 340 const size_t pattern_length = pattern_.length(); in BoyerMooreSearch() local 347 Char last_char = pattern_[pattern_length - 1]; in BoyerMooreSearch() 350 while (index <= subject_length - pattern_length) { in BoyerMooreSearch() 351 size_t j = pattern_length - 1; in BoyerMooreSearch() 356 if (index > subject_length - pattern_length) { in BoyerMooreSearch() 369 index += pattern_length - 1 - in BoyerMooreSearch() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/multifile/ |
D | patternspec.c | 41 guint pattern_length; member 176 if (pspec->pattern_length == string_length) in pattern_match() 178 else if (pspec->pattern_length) in pattern_match() 179 return memcmp (pspec->pattern, string, pspec->pattern_length) == 0; in pattern_match() 183 if (pspec->pattern_length) in pattern_match() 186 string + (string_length - pspec->pattern_length), in pattern_match() 187 pspec->pattern_length + 1) == 0; in pattern_match() 191 if (pspec->pattern_length != string_length) in pattern_match() 220 pspec->pattern_length = strlen (pattern); in pattern_spec_new() 223 pspec->pattern = g_new (gchar, pspec->pattern_length + 1); in pattern_spec_new() [all …]
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | doio.c | 406 char *pattern, int pattern_length, int patshift); 408 int pattern_length, int patshift, int fsa); 3644 int pattern_length, int patshift) in doio_pat_check() argument 3651 if (pattern_check(buf, length, pattern, pattern_length, patshift) != 0) { in doio_pat_check() 3660 pattern_index = patshift % pattern_length;; in doio_pat_check() 3685 i) % pattern_length]; in doio_pat_check() 3710 if (pattern_index == pattern_length) { in doio_pat_check() 3737 int pattern_length, int patshift, int fsa) in check_file() argument 3804 (*Data_Check) (buf, offset, length, pattern, pattern_length, in check_file() 3810 file, offset, length, pattern, pattern_length, in check_file()
|