]> Creatis software - gdcm.git/blobdiff - src/gdcmUtil.cxx
BUG: Hopefully fix pb on 64bits machine. Temp hack is to check what sieof of long...
[gdcm.git] / src / gdcmUtil.cxx
index 5c06e5abd03e49c6d0a99c1099d0aba388c77319..01808c8189c8a4a680da44edc54d0969fdeec552 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/06 18:49:30 $
-  Version:   $Revision: 1.164 $
+  Date:      $Date: 2005/10/20 07:25:10 $
+  Version:   $Revision: 1.166 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -186,7 +186,7 @@ int Util::CountSubstring (const std::string &str,
  */
 bool Util::IsCleanString(std::string const &s)
 {
-  std::cout<< std::endl << s << std::endl;
+   std::cout<< std::endl << s << std::endl;
    for(unsigned int i=0; i<s.size(); i++)
    {
       //std::cout<< std::endl << i << " : " << (unsigned char)s[i] << std::endl;
@@ -195,7 +195,7 @@ bool Util::IsCleanString(std::string const &s)
          return false;
       }
    }
-return true;   
+   return true;   
 }
 
 /**
@@ -896,7 +896,7 @@ std::string Util::CreateUniqueUID(const std::string &root)
    append += Util::GDCM_MAC_ADRESS;
    append += ".";
    append += Util::GetCurrentDateTime();
-
+   append += ".";
    //Also add a mini random number just in case:
    char tmp[10];
    int r = (int) (100.0*rand()/RAND_MAX);