Lines Matching refs:a

50 char* object_path_startswith(const char *a, const char *b) {  in object_path_startswith()  argument
53 if (!object_path_is_valid(a) || in object_path_startswith()
58 return (char*) a + 1; in object_path_startswith()
60 p = startswith(a, b); in object_path_startswith()
196 static bool complex_pattern_check(char c, const char *a, const char *b) { in complex_pattern_check() argument
199 if (!a && !b) in complex_pattern_check()
202 if (!a || !b) in complex_pattern_check()
206 if (*a != *b) in complex_pattern_check()
207 return (separator && (*a == 0 || *b == 0)); in complex_pattern_check()
209 if (*a == 0) in complex_pattern_check()
212 separator = *a == c; in complex_pattern_check()
214 a++, b++; in complex_pattern_check()
236 static bool simple_pattern_check(char c, const char *a, const char *b) { in simple_pattern_check() argument
239 if (!a && !b) in simple_pattern_check()
242 if (!a || !b) in simple_pattern_check()
246 if (*a != *b) in simple_pattern_check()
247 return *a == 0 && (*b == c || separator); in simple_pattern_check()
249 if (*a == 0) in simple_pattern_check()
252 separator = *a == c; in simple_pattern_check()
254 a++, b++; in simple_pattern_check()
295 const char *a; in bus_address_escape() local
302 for (a = v, b = r; *a; a++) { in bus_address_escape()
304 if ((*a >= '0' && *a <= '9') || in bus_address_escape()
305 (*a >= 'a' && *a <= 'z') || in bus_address_escape()
306 (*a >= 'A' && *a <= 'Z') || in bus_address_escape()
307 strchr("_-/.", *a)) in bus_address_escape()
308 *(b++) = *a; in bus_address_escape()
311 *(b++) = hexchar(*a >> 4); in bus_address_escape()
312 *(b++) = hexchar(*a & 0xF); in bus_address_escape()