ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/selection/NameFinder.cpp
(Generate patch)

Comparing branches/development/src/selection/NameFinder.cpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1767 by gezelter, Fri Jul 6 22:01:58 2012 UTC

# 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        }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines