Lines Matching refs:path
45 static inline int getFirstComponentLength (const char* path)
48 while (path[compLen] != 0 && path[compLen] != '.')
53 static bool compareNameToPathComponent (const char* name, const char* path, int compLen)
57 if (name[pos] != path[pos])
67 static void splitPath (const char* path, std::vector<std::string>& components)
69 std::string pathStr (path);
145 const TestNode* TestNode::find (const char* path) const
150 return static_cast<const TestGroup*>(this)->findChildNode(path);
155 int compLen = getFirstComponentLength(path);
158 if (compareNameToPathComponent(getName(), path, compLen))
160 if (path[compLen] == 0)
163 return static_cast<const TestGroup*>(this)->findChildNode(path + compLen + 1);
172 TestNode* TestNode::find (const char* path)
174 return const_cast<TestNode*>(const_cast<const TestNode*>(this)->find(path));
202 const TestNode* TestGroup::findChildNode (const char* path) const
204 int compLen = getFirstComponentLength(path);
211 if (compareNameToPathComponent((*iter)->getName(), path, compLen))
220 if (path[compLen] == 0)
221 return matchingNode; // Last element in path, return matching node.
223 return static_cast<const TestGroup*>(matchingNode)->findChildNode(path + compLen + 1);
286 TestCase* TestHierarchyBuilder::createCase (const char* path, TestCaseType caseType)
290 splitPath(path, components);