1 /*=========================================================================
4 Module: $RCSfile: gdcmUtil.h,v $
6 Date: $Date: 2004/10/10 00:42:55 $
7 Version: $Revision: 1.35 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
22 #include "gdcmCommon.h"
28 * \defgroup Globals Utility functions
29 * \brief Here are some utility functions, belonging to NO class,
30 * dealing with strings, file names... that can be called
31 * from anywhere by whomsoever they can help.
34 //-----------------------------------------------------------------------------
36 class GDCM_EXPORT gdcmUtil
39 static std::string Format(const char* format, ...);
40 static void Tokenize (const std::string& str,
41 std::vector<std::string>& tokens,
42 const std::string& delimiters = " ");
43 static int CountSubstring (const std::string& str,
44 const std::string& subStr);
46 static std::string CreateCleanString(std::string s);
47 static void NormalizePath(std::string &name);
48 static std::string GetPath(std::string &fullName);
49 static std::string GetName(std::string &fullName);
51 //-----------------------------------------------------------------------------