X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fstrreplace.cc;h=e043b9f54e9cb5b15a744ea5cd64ee3fef358917;hb=239da0efb58849e545ec44aeb839d41b8e4792cf;hp=7999b5c6c91c3badcf86269125290ede5be756e1;hpb=2e8f80e37a7d20deb3f138cd72c26f8c6de9d1ab;p=ardour.git diff --git a/libs/pbd/strreplace.cc b/libs/pbd/strreplace.cc index 7999b5c6c9..e043b9f54e 100644 --- a/libs/pbd/strreplace.cc +++ b/libs/pbd/strreplace.cc @@ -17,7 +17,8 @@ */ -#include +#include "pbd/replace_all.h" +#include "glibmm/miscutils.h" int replace_all (std::string& str, @@ -36,3 +37,11 @@ replace_all (std::string& str, return cnt; } +std::string +poor_mans_glob (std::string path) +{ + std::string copy = path; + replace_all (copy, "~", Glib::get_home_dir()); + return copy; +} +