22 lines
382 B
Plaintext
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
|