Lines Matching refs:b
50 char* object_path_startswith(const char *a, const char *b) { in object_path_startswith() argument
54 !object_path_is_valid(b)) in object_path_startswith()
57 if (streq(b, "/")) 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()
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()
254 a++, b++; in simple_pattern_check()
296 char *r, *b; in bus_address_escape() local
302 for (a = v, b = r; *a; a++) { in bus_address_escape()
308 *(b++) = *a; in bus_address_escape()
310 *(b++) = '%'; in bus_address_escape()
311 *(b++) = hexchar(*a >> 4); in bus_address_escape()
312 *(b++) = hexchar(*a & 0xF); in bus_address_escape()
316 *b = 0; in bus_address_escape()