Files
geant4/source/externals/g4tools/include/tools/schar
T
2025-12-05 08:54:02 +01:00

22 lines
382 B
Plaintext

// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_schar
#define tools_schar
#include <string>
namespace tools {
inline bool is_spaces(const std::string& a_string){
std::string::const_iterator it;
for(it=a_string.begin();it!=a_string.end();++it) {
if((*it)!=' ') return false;
}
return true;
}
}
#endif