Searched refs:pattern_length (Results 1 – 4 of 4) sorted by relevance
/external/v8/src/ |
D | string-search.h | 89 int pattern_length = pattern_.length(); in StringSearch() local 90 if (pattern_length < kBMMinPatternLength) { in StringSearch() 91 if (pattern_length == 1) { in StringSearch() 268 int pattern_length = pattern.length(); in LinearSearch() local 271 int n = subject.length() - pattern_length; in LinearSearch() 287 pattern_length - 1)) { in LinearSearch() 305 int pattern_length = pattern.length(); in BoyerMooreSearch() local 312 PatternChar last_char = pattern[pattern_length - 1]; in BoyerMooreSearch() 315 while (index <= subject_length - pattern_length) { in BoyerMooreSearch() 316 int j = pattern_length - 1; in BoyerMooreSearch() [all …]
|
D | runtime.cc | 2822 int pattern_length = pattern.length(); in FindStringIndices() local 2829 index += pattern_length; in FindStringIndices() 3359 int pattern_length = pat->length(); in StringMatch() local 3360 if (pattern_length == 0) return start_index; in StringMatch() 3363 if (start_index + pattern_length > subject_length) return -1; in StringMatch() 3423 int pattern_length = pattern.length(); in StringMatchBackwards() local 3424 ASSERT(pattern_length >= 1); in StringMatchBackwards() 3425 ASSERT(idx + pattern_length <= subject.length()); in StringMatchBackwards() 3428 for (int i = 0; i < pattern_length; i++) { in StringMatchBackwards() 3440 while (j < pattern_length) { in StringMatchBackwards() [all …]
|
/external/bluetooth/glib/glib/ |
D | gpattern.c | 47 guint pattern_length; member 164 if (pspec->pattern_length == string_length) in g_pattern_match() 166 else if (pspec->pattern_length) in g_pattern_match() 167 return strncmp (pspec->pattern, string, pspec->pattern_length) == 0; in g_pattern_match() 171 if (pspec->pattern_length) in g_pattern_match() 172 return strcmp (pspec->pattern, string + (string_length - pspec->pattern_length)) == 0; in g_pattern_match() 176 if (pspec->pattern_length != string_length) in g_pattern_match() 202 pspec->pattern_length = strlen (pattern); in g_pattern_spec_new() 205 pspec->pattern = g_new (gchar, pspec->pattern_length + 1); in g_pattern_spec_new() 214 pspec->pattern_length--; in g_pattern_spec_new() [all …]
|
/external/bluetooth/glib/tests/ |
D | patterntest.c | 57 guint pattern_length; member 119 if (spec->pattern_length != strlen (spec->pattern)) in test_compilation() 122 spec->pattern_length, in test_compilation() 178 match_type_name (p1->match_type), p1->pattern_length, p1->pattern, in test_equal() 180 match_type_name (p2->match_type), p2->pattern_length, p2->pattern); in test_equal()
|