Lines Matching refs:end_pos
130 size_t end_pos = filename_pos(path); in parent_path_end() local
132 bool filename_was_sep = path.size() > 0 && is_separator(path[end_pos]); in parent_path_end()
135 size_t root_dir_pos = root_dir_start(path.substr(0, end_pos)); in parent_path_end()
137 while(end_pos > 0 && in parent_path_end()
138 (end_pos - 1) != root_dir_pos && in parent_path_end()
139 is_separator(path[end_pos - 1])) in parent_path_end()
140 --end_pos; in parent_path_end()
142 if (end_pos == 1 && root_dir_pos == 0 && filename_was_sep) in parent_path_end()
145 return end_pos; in parent_path_end()
215 size_t end_pos = Path.find_first_of(separators, Position); in operator ++() local
216 Component = Path.slice(Position, end_pos); in operator ++()
237 size_t end_pos = Position; in operator --() local
239 while(end_pos > 0 && in operator --()
240 (end_pos - 1) != root_dir_pos && in operator --()
241 is_separator(Path[end_pos - 1])) in operator --()
242 --end_pos; in operator --()
245 size_t start_pos = filename_pos(Path.substr(0, end_pos)); in operator --()
246 Component = Path.slice(start_pos, end_pos); in operator --()
400 size_t end_pos = parent_path_end(path); in parent_path() local
401 if (end_pos == StringRef::npos) in parent_path()
404 return path.substr(0, end_pos); in parent_path()
408 size_t end_pos = parent_path_end(StringRef(path.begin(), path.size())); in remove_filename() local
409 if (end_pos != StringRef::npos) in remove_filename()
410 path.set_size(end_pos); in remove_filename()