Lines Matching refs:e

44         const char *e, *p, *h;  in import_url_last_component()  local
53 e = h + strcspn(h, "?#"); /* Cut off "Query" and "Fragment" */ in import_url_last_component()
55 while (e > h && e[-1] == '/') /* Eat trailing slashes */ in import_url_last_component()
56 e--; in import_url_last_component()
58 p = e; in import_url_last_component()
62 if (e <= p) /* Empty component? */ in import_url_last_component()
68 s = strndup(p, e - p); in import_url_last_component()
84 const char *e, *h; in import_url_change_suffix() local
103 e = h + strcspn(h, "?#"); /* Cut off "Query" and "Fragment" */ in import_url_change_suffix()
105 while (e > h && e[-1] == '/') /* Eat trailing slashes */ in import_url_change_suffix()
106 e--; in import_url_change_suffix()
111 while (e > h && e[-1] != '/') /* Eat last word (we don't mind if empty) */ in import_url_change_suffix()
112 e--; in import_url_change_suffix()
114 while (e > h && e[-1] == '/') /* Eat slashes before the last word */ in import_url_change_suffix()
115 e--; in import_url_change_suffix()
120 s = new(char, (e - url) + 1 + strlen_ptr(suffix) + 1); in import_url_change_suffix()
124 strcpy(stpcpy(mempcpy(s, url, e - url), "/"), strempty(suffix)); in import_url_change_suffix()
138 const char *e; in tar_strip_suffixes() local
141 e = endswith(name, ".tar"); in tar_strip_suffixes()
142 if (!e) in tar_strip_suffixes()
143 e = endswith(name, ".tar.xz"); in tar_strip_suffixes()
144 if (!e) in tar_strip_suffixes()
145 e = endswith(name, ".tar.gz"); in tar_strip_suffixes()
146 if (!e) in tar_strip_suffixes()
147 e = endswith(name, ".tar.bz2"); in tar_strip_suffixes()
148 if (!e) in tar_strip_suffixes()
149 e = endswith(name, ".tgz"); in tar_strip_suffixes()
150 if (!e) in tar_strip_suffixes()
151 e = strchr(name, 0); in tar_strip_suffixes()
153 if (e <= name) in tar_strip_suffixes()
156 s = strndup(name, e - name); in tar_strip_suffixes()
186 char *e; in raw_strip_suffixes() local
188 e = endswith(q, sfx); in raw_strip_suffixes()
189 if (e) { in raw_strip_suffixes()
190 *e = 0; in raw_strip_suffixes()