]> Creatis software - gdcm.git/commitdiff
remaining and so on ...
authorjpr <jpr>
Wed, 24 Sep 2003 13:25:21 +0000 (13:25 +0000)
committerjpr <jpr>
Wed, 24 Sep 2003 13:25:21 +0000 (13:25 +0000)
(Sorry, I'm under RedHat 7.3, and gcc agrees with *everything"
gcc disagrees with a lot of stuff under RedHat 9 :-(

src/gdcmUtil.cxx

index 035ec409bb3d9f73ad51c15ba261bcd91e8b2401..df21396f1529b07d1b69e5292dddf04125d52c36 100644 (file)
@@ -1,4 +1,4 @@
-// $Header: /cvs/public/gdcm/src/gdcmUtil.cxx,v 1.21 2003/09/24 13:21:46 jpr Exp $
+// $Header: /cvs/public/gdcm/src/gdcmUtil.cxx,v 1.22 2003/09/24 13:25:21 jpr Exp $
 
 //This is needed when compiling in debug mode
 #ifdef _MSC_VER
@@ -108,9 +108,9 @@ std::istream& eatwhite(std::istream& is) {
 void Tokenize (const std::string& str,
                std::vector<std::string>& tokens,
                const std::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) {
+   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::tring::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);