Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -0,0 +1,27 @@
// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_touplow
#define tools_touplow
#include <string>
namespace tools {
inline void tolowercase(std::string& a_string){
for(std::string::iterator it=a_string.begin();it!=a_string.end();++it) {
char c = *it;
*it = ((c) >= 'A' && (c) <= 'Z' ? c - 'A' + 'a' : c);
}
}
inline void touppercase(std::string& a_string){
for(std::string::iterator it=a_string.begin();it!=a_string.end();++it) {
char c = *it;
*it = ((c) >= 'a' && (c) <= 'z' ? c - 'a' + 'A' : c);
}
}
}
#endif