-// $Header: /cvs/public/gdcm/src/gdcmUtil.cxx,v 1.20 2003/09/24 13:00:59 jpr Exp $
+// $Header: /cvs/public/gdcm/src/gdcmUtil.cxx,v 1.23 2003/09/24 13:27:02 jpr Exp $
//This is needed when compiling in debug mode
#ifdef _MSC_VER
///////////////////////////////////////////////////////////////////////////
// Because is not yet available in g++2.96
-istream& eatwhite(istream& is) {
+std::istream& eatwhite(std::istream& is) {
char c;
while (is.get(c)) {
if (!isspace(c)) {
///////////////////////////////////////////////////////////////////////////
// Because is not available in C++ (?)
-void Tokenize (const string& str,
- vector<string>& tokens,
- const string& delimiters) {
- string::size_type lastPos = str.find_first_not_of(delimiters,0);
- string::size_type pos = str.find_first_of (delimiters,lastPos);
- while (string::npos != pos || string::npos != lastPos) {
+void Tokenize (const std::string& str,
+ std::vector<std::string>& tokens,
+ const std::string& delimiters) {
+ std::string::size_type lastPos = str.find_first_not_of(delimiters,0);
+ std::string::size_type pos = str.find_first_of (delimiters,lastPos);
+ while (std::string::npos != pos || std::string::npos != lastPos) {
tokens.push_back(str.substr(lastPos, pos - lastPos));
lastPos = str.find_first_not_of(delimiters, pos);
pos = str.find_first_of (delimiters, lastPos);