| # | Line 226 | Line 226 | namespace OpenMD { | |
|---|---|---|
| 226 | } | |
| 227 | ||
| 228 | bool NameFinder::isMatched(const std::string& str, const std::string& wildcard) { | |
| 229 | < | return Wildcard::wildcardfit (wildcard.c_str(), str.c_str()); |
| 229 | > | return Wildcard::wildcardfit(wildcard.c_str(), str.c_str()) > 0 ? true : false; |
| 230 | } | |
| 231 | ||
| 232 | ||
| # | Line 256 | Line 256 | namespace OpenMD { | |
| 256 | } | |
| 257 | ||
| 258 | bool NameFinder::isInteger(const std::string str) { | |
| 259 | < | for(int i =0; i < str.size(); ++i){ |
| 259 | > | for(unsigned int i = 0; i < str.size(); ++i){ |
| 260 | if (!std::isdigit(str[i])) { | |
| 261 | return false; | |
| 262 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |