Lines Matching refs:path
19 static std::vector<std::string> GetPathSegments(int segment_start, const std::string& path) { in GetPathSegments() argument
21 int segment_end = path.find_first_of('/', segment_start); in GetPathSegments()
26 segment_end = path.find_first_of('/', ++segment_start); in GetPathSegments()
30 segments.push_back(path.substr(segment_start, segment_end - segment_start)); in GetPathSegments()
32 segment_end = path.find_first_of('/', segment_start); in GetPathSegments()
34 if (segment_start < path.size()) { in GetPathSegments()
35 segments.push_back(path.substr(segment_start)); in GetPathSegments()
44 void node::BuildPathForNodeRecursive(bool safe, const node* node, std::stringstream* path) const { in BuildPathForNodeRecursive()
46 BuildPathForNodeRecursive(safe, node->parent_, path); in BuildPathForNodeRecursive()
50 (*path) << reinterpret_cast<uintptr_t>(node); in BuildPathForNodeRecursive()
52 (*path) << node->GetName(); in BuildPathForNodeRecursive()
57 (*path) << "/"; in BuildPathForNodeRecursive()
63 std::stringstream path; in BuildPath() local
65 BuildPathForNodeRecursive(false, this, &path); in BuildPath()
66 return path.str(); in BuildPath()
71 std::stringstream path; in BuildSafePath() local
73 BuildPathForNodeRecursive(true, this, &path); in BuildSafePath()
74 return path.str(); in BuildSafePath()