--- branches/development/src/selection/NameFinder.cpp 2010/07/09 23:08:25 1465 +++ branches/development/src/selection/NameFinder.cpp 2012/07/06 22:01:58 1767 @@ -36,7 +36,8 @@ * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). - * [4] Vardeman & Gezelter, in progress (2009). + * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). + * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ #include "selection/NameFinder.hpp" #include "utils/wildcards.hpp" @@ -225,7 +226,7 @@ namespace OpenMD { } bool NameFinder::isMatched(const std::string& str, const std::string& wildcard) { - return Wildcard::wildcardfit (wildcard.c_str(), str.c_str()); + return Wildcard::wildcardfit(wildcard.c_str(), str.c_str()) > 0 ? true : false; } @@ -255,7 +256,7 @@ namespace OpenMD { } bool NameFinder::isInteger(const std::string str) { - for(int i =0; i < str.size(); ++i){ + for(unsigned int i = 0; i < str.size(); ++i){ if (!std::isdigit(str[i])) { return false; }