diff OrthancStone/Sources/Toolbox/GenericToolbox.cpp @ 1591:5887a4f8594b

moving platform-specific files out of the "OrthancStone" folder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Oct 2020 13:15:03 +0200
parents 244ad1e4e76a
children 8563ea5d8ae4
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/GenericToolbox.cpp	Thu Oct 22 18:39:03 2020 +0200
+++ b/OrthancStone/Sources/Toolbox/GenericToolbox.cpp	Fri Oct 23 13:15:03 2020 +0200
@@ -21,6 +21,8 @@
 
 #include "GenericToolbox.h"
 
+#include <Toolbox.h>
+
 #include <boost/regex.hpp>
 
 namespace OrthancStone
@@ -100,5 +102,12 @@
       }
     }
 
+
+    void NormalizeUuid(std::string& uuid)
+    {
+      std::string temp = Orthanc::Toolbox::StripSpaces(uuid);
+      Orthanc::Toolbox::ToLowerCase(temp);
+      uuid.swap(temp);
+    }
   }
 }