Lines Matching defs:end_pos
134 size_t end_pos = filename_pos(path);
136 bool filename_was_sep = path.size() > 0 && is_separator(path[end_pos]);
139 size_t root_dir_pos = root_dir_start(path.substr(0, end_pos));
141 while(end_pos > 0 &&
142 (end_pos - 1) != root_dir_pos &&
143 is_separator(path[end_pos - 1]))
144 --end_pos;
146 if (end_pos == 1 && root_dir_pos == 0 && filename_was_sep)
149 return end_pos;
219 size_t end_pos = Path.find_first_of(separators, Position);
220 Component = Path.slice(Position, end_pos);
241 size_t end_pos = Position;
243 while(end_pos > 0 &&
244 (end_pos - 1) != root_dir_pos &&
245 is_separator(Path[end_pos - 1]))
246 --end_pos;
249 size_t start_pos = filename_pos(Path.substr(0, end_pos));
250 Component = Path.slice(start_pos, end_pos);
404 size_t end_pos = parent_path_end(path);
405 if (end_pos == StringRef::npos)
408 return path.substr(0, end_pos);
412 size_t end_pos = parent_path_end(StringRef(path.begin(), path.size()));
413 if (end_pos != StringRef::npos)
414 path.set_size(end_pos);