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