ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/StringUtils.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/StringUtils.hpp (file contents):
Revision 2090 by gezelter, Tue Mar 8 21:07:34 2005 UTC vs.
Revision 2448 by tim, Wed Nov 16 23:10:02 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 127 | Line 127 | namespace oopse {
127      }
128      return result;
129    }
130 +
131 +
132 +  template<typename T>
133 +  bool isType(const std::string& str) {
134 +    T result;
135 +    std::istringstream iss(str);        
136 +    bool ret = true;
137 +    if (!(iss >> result)) {
138 +        ret = false;
139 +    }
140 +    return ret;
141 +  }
142    
143 <  std::string OOPSE_itoa(int value, unsigned int base);
143 >  std::string OOPSE_itoa(int value, unsigned int base = 10);
144    
145    /**@todo need implementation */
146    std::string getPrefix(const std::string& str);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines