Lines Matching refs:end_pos
141 size_t end_pos = filename_pos(path, style); in parent_path_end() local
144 path.size() > 0 && is_separator(path[end_pos], style); in parent_path_end()
148 while (end_pos > 0 && in parent_path_end()
149 (root_dir_pos == StringRef::npos || end_pos > root_dir_pos) && in parent_path_end()
150 is_separator(path[end_pos - 1], style)) in parent_path_end()
151 --end_pos; in parent_path_end()
153 if (end_pos == root_dir_pos && !filename_was_sep) { in parent_path_end()
160 return end_pos; in parent_path_end()
284 size_t end_pos = Path.find_first_of(separators(S), Position); in operator ++() local
285 Component = Path.slice(Position, end_pos); in operator ++()
319 size_t end_pos = Position; in operator ++() local
320 while (end_pos > 0 && (end_pos - 1) != root_dir_pos && in operator ++()
321 is_separator(Path[end_pos - 1], S)) in operator ++()
322 --end_pos; in operator ++()
327 (root_dir_pos == StringRef::npos || end_pos - 1 > root_dir_pos)) { in operator ++()
334 size_t start_pos = filename_pos(Path.substr(0, end_pos), S); in operator ++()
335 Component = Path.slice(start_pos, end_pos); in operator ++()
469 size_t end_pos = parent_path_end(path, style); in parent_path() local
470 if (end_pos == StringRef::npos) in parent_path()
472 return path.substr(0, end_pos); in parent_path()
476 size_t end_pos = parent_path_end(StringRef(path.begin(), path.size()), style); in remove_filename() local
477 if (end_pos != StringRef::npos) in remove_filename()
478 path.truncate(end_pos); in remove_filename()