104 const string& x_old = x.first;
105 const string& x_new = x.second;
110 if (path.compare(0, x_old.size(), x_old) == 0) {
111 string newPath = path;
112 newPath.replace(0, x_old.size(), x_new);
130 return a.first.size() > b.first.size();
std::string replace(const std::string &path) const
std::pair< std::string, std::string > StringPair
void addPath(const std::string &oldPath, const std::string &newPath)
static PathReplacementMgr & singleton()
std::vector< StringPair > m_pathReplacement
static bool compare_as_strings(const PathReplacementMgr::StringPair &a, const PathReplacementMgr::StringPair &b)
static PathReplacementMgr s_singleton