Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -71,6 +71,19 @@ inline std::string to_xml(const std::string& a_string){
return s;
}
inline void to_win(std::string& a_string) {
replace(a_string,"/cygdrive/c","C:"); // CYGWIN.
replace(a_string,"/mnt/c","C:"); // WSL.
replace(a_string,'/','\\');
}
inline void to_win_python(std::string& a_string) {
replace(a_string,"/cygdrive/c","c:"); // CYGWIN.
replace(a_string,"/mnt/c","c:"); // WSL. (Python wants c: in lowercase).
replace(a_string,"C:","c:");
replace(a_string,'\\','/');
}
}
#endif