Home
last modified time | relevance | path

Searched refs:pattern_length (Results 1 – 3 of 3) sorted by relevance

/external/bluetooth/glib/glib/
Dgpattern.c47 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/
Dpatterntest.c57 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()
/external/webkit/V8Binding/v8/src/
Druntime.cc2192 int pattern_length = pat->length(); in StringMatch() local
2193 if (pattern_length == 0) return start_index; in StringMatch()
2196 if (start_index + pattern_length > subject_length) return -1; in StringMatch()
2204 if (pattern_length == 1) { in StringMatch()
2277 uint32_t pattern_length = pat->length(); in Runtime_StringLastIndexOf() local
2280 if (start_index + pattern_length > sub_length) { in Runtime_StringLastIndexOf()
2281 start_index = sub_length - pattern_length; in Runtime_StringLastIndexOf()
2286 for (uint32_t j = 0; j < pattern_length; j++) { in Runtime_StringLastIndexOf()