Import Geant4 11.4.0 source tree
This commit is contained in:
-19
@@ -12,12 +12,6 @@
|
||||
|
||||
namespace tools {
|
||||
|
||||
inline void replace(std::string& a_string,char a_old,char a_new){
|
||||
tools_sforit(a_string,it) {
|
||||
if((*it)==a_old) *it = a_new;
|
||||
}
|
||||
}
|
||||
|
||||
inline bool replace(std::string& a_string,const std::string& a_old,const std::string& a_new){
|
||||
// return true : some replacement done.
|
||||
// return false : nothing replaced.
|
||||
@@ -72,19 +66,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user