Lines Matching full:component
63 // Look for this first component in the following order.
230 i.Component = find_first_component(path, style);
246 // Increment Position to past the current component
247 Position += Component.size();
251 Component = StringRef();
257 bool was_net = Component.size() > 2 && is_separator(Component[0], S) &&
258 Component[1] == Component[0] && !is_separator(Component[2], S);
265 (is_style_windows(S) && Component.ends_with(":"))) {
266 Component = Path.substr(Position, 1);
276 if (Position == Path.size() && Component != "/") {
278 Component = ".";
283 // Find next component.
285 Component = Path.slice(Position, end_pos);
310 I.Component = Path.substr(0, 0);
329 Component = ".";
335 Component = Path.slice(start_pos, end_pos);
341 return Path.begin() == RHS.Path.begin() && Component == RHS.Component &&
361 // just {C:,//net}, return the first component.
382 // just {C:,//net}, return the first component.
399 // {C:,//net}, skip to the next component.
432 for (auto &component : components) {
436 // Strip separators from beginning of component.
437 size_t loc = component.find_first_not_of(separators(style));
438 StringRef c = component.substr(loc);
446 !component.empty() && is_separator(component[0], style);
448 !(path.empty() || has_root_name(component, style))) {
453 path.append(component.begin(), component.end());
735 StringRef component = remaining.take_front(next_slash);
748 if (component.empty() || component == ".") {
750 } else if (remove_dot_dot && component == "..") {
752 // Do not allow ".." to remove the root component. If this is the
753 // beginning of a relative path, keep the ".." component.
757 components.push_back(component);
760 components.push_back(component);