Lines Matching full:components

50 FilePath::FilePath (const std::vector<std::string>& components)  in FilePath()  argument
52 for (size_t ndx = 0; ndx < components.size(); ndx++) in FilePath()
56 m_path += components[ndx]; in FilePath()
60 void FilePath::split (std::vector<std::string>& components) const in split()
62 components.clear(); in split()
68 components.push_back(separator + separator); in split()
70 components.push_back(separator); in split()
79 components.push_back(m_path.substr(curCompStart, pos - curCompStart)); in split()
86 components.push_back(m_path.substr(curCompStart, pos - curCompStart)); in split()
89 FilePath FilePath::join (const std::vector<std::string>& components) in join() argument
91 return FilePath(components); in join()
96 std::vector<std::string> components; in normalize() local
99 split(components); in normalize()
105 // Do in reverse order and eliminate any . or .. components in normalize()
106 for (int ndx = (int)components.size()-1; ndx >= 0; ndx--) in normalize()
108 const std::string& comp = components[ndx]; in normalize()
122 // Prepend necessary ".." components in normalize()
126 if (reverseNormalizedComponents.empty() && components.back() == ".") in normalize()
127 reverseNormalizedComponents.push_back("."); // Composed of "." components only in normalize()
141 std::vector<std::string> components; in getBaseName() local
142 split(components); in getBaseName()
143 return !components.empty() ? components[components.size()-1] : std::string(""); in getBaseName()
148 std::vector<std::string> components; in getDirName() local
149 split(components); in getDirName()
150 if (components.size() > 1) in getDirName()
152 components.pop_back(); in getDirName()
153 return FilePath(components).getPath(); in getDirName()