Lines Matching refs:template_pos
3991 const char *sep, *template_pos; in sd_bus_path_encode_many() local
4036 for (template_pos = path_template; *template_pos; ) { in sd_bus_path_encode_many()
4037 sep = strchrnul(template_pos, '%'); in sd_bus_path_encode_many()
4038 path_pos = mempcpy(path_pos, template_pos, sep - template_pos); in sd_bus_path_encode_many()
4043 template_pos = sep + 1; in sd_bus_path_encode_many()
4053 const char *template_pos, *path_pos; in sd_bus_path_decode_many() local
4083 for (template_pos = path_template; *template_pos; ) { in sd_bus_path_decode_many()
4089 sep = strchrnul(template_pos, '%'); in sd_bus_path_decode_many()
4090 length = sep - template_pos; in sd_bus_path_decode_many()
4091 if (strncmp(path_pos, template_pos, length)) in sd_bus_path_decode_many()
4095 template_pos += length; in sd_bus_path_decode_many()
4097 if (!*template_pos) in sd_bus_path_decode_many()
4105 ++template_pos; /* skip over '%' */ in sd_bus_path_decode_many()
4107 sep = strchrnul(template_pos, '/'); in sd_bus_path_decode_many()
4108 length = sep - template_pos; /* length of suffix to match verbatim */ in sd_bus_path_decode_many()
4113 strncmp(sep - length, template_pos, length)) in sd_bus_path_decode_many()
4116 template_pos += length; /* skip over matched label */ in sd_bus_path_decode_many()