Searched refs:pattern_length (Results 1 – 5 of 5) sorted by relevance
66 int pattern_length = pattern_.length(); in StringSearch() local67 if (pattern_length < kBMMinPatternLength) { in StringSearch()68 if (pattern_length == 1) { in StringSearch()253 int pattern_length = pattern.length(); in LinearSearch() local256 int n = subject.length() - pattern_length; in LinearSearch()272 pattern_length - 1)) { in LinearSearch()290 int pattern_length = pattern.length(); in BoyerMooreSearch() local297 PatternChar last_char = pattern[pattern_length - 1]; in BoyerMooreSearch()300 while (index <= subject_length - pattern_length) { in BoyerMooreSearch()301 int j = pattern_length - 1; in BoyerMooreSearch()[all …]
3731 int pattern_length = pattern.length(); in FindStringIndices() local3738 index += pattern_length; in FindStringIndices()4225 int pattern_length = pat->length(); in StringMatch() local4226 if (pattern_length == 0) return start_index; in StringMatch()4229 if (start_index + pattern_length > subject_length) return -1; in StringMatch()4288 int pattern_length = pattern.length(); in StringMatchBackwards() local4289 DCHECK(pattern_length >= 1); in StringMatchBackwards()4290 DCHECK(idx + pattern_length <= subject.length()); in StringMatchBackwards()4293 for (int i = 0; i < pattern_length; i++) { in StringMatchBackwards()4305 while (j < pattern_length) { in StringMatchBackwards()[all …]
33 #define OP_COMPARE_NODE_SUBSTRING(pattern, pattern_length, pattern_sum) \ argument34 std::string(1, '\x25') + pattern + pattern_length + pattern_sum
413 size_t pattern_length, in CompareNodeSubstring() argument416 pattern_length_(pattern_length), in CompareNodeSubstring()605 uint32 pattern_length = 0, pattern_sum = 0; in ParseNextSentence() local608 if (!ReadUint32(&pattern_length) || pattern_length == 0) in ParseNextSentence()613 hashed_pattern, pattern_length, pattern_sum)); in ParseNextSentence()
930 uint32_t pattern_length; in pattern_cb() local969 pattern_length = i; in pattern_cb()980 unsigned int b = min(pattern_length, max_size - i); in pattern_cb()