Home | History | Annotate | Download | only in Support

Lines Matching defs:end_pos

142     size_t end_pos = filename_pos(path);
144 bool filename_was_sep = path.size() > 0 && is_separator(path[end_pos]);
147 size_t root_dir_pos = root_dir_start(path.substr(0, end_pos));
149 while(end_pos > 0 &&
150 (end_pos - 1) != root_dir_pos &&
151 is_separator(path[end_pos - 1]))
152 --end_pos;
154 if (end_pos == 1 && root_dir_pos == 0 && filename_was_sep)
157 return end_pos;
305 size_t end_pos = Path.find_first_of(separators, Position);
306 Component = Path.slice(Position, end_pos);
324 size_t end_pos = Position;
326 while(end_pos > 0 &&
327 (end_pos - 1) != root_dir_pos &&
328 is_separator(Path[end_pos - 1]))
329 --end_pos;
332 size_t start_pos = filename_pos(Path.substr(0, end_pos));
333 Component = Path.slice(start_pos, end_pos);
487 size_t end_pos = parent_path_end(path);
488 if (end_pos == StringRef::npos)
491 return path.substr(0, end_pos);
495 size_t end_pos = parent_path_end(StringRef(path.begin(), path.size()));
496 if (end_pos != StringRef::npos)
497 path.set_size(end_pos);