uitools_plat/cdl_api/inc/CdlCompilerToolkit/CdlTkUtil.h
changeset 1 b700e12870ca
parent 0 f58d6ec98e88
--- a/uitools_plat/cdl_api/inc/CdlCompilerToolkit/CdlTkUtil.h	Thu Dec 17 09:14:18 2009 +0200
+++ b/uitools_plat/cdl_api/inc/CdlCompilerToolkit/CdlTkUtil.h	Mon Jan 18 21:13:05 2010 +0200
@@ -145,6 +145,14 @@
     */
 	static bool IsCpp(char aChar);
 
+    /**
+     * Is the character equal to '\\' or '/' ? 
+     * @param aChar the character to test
+     * @return true if the character is a path separator
+     */
+	static bool IsPathSeparator(char aChar);
+	static std::string::size_type FindFirstPathSeparator(const std::string& s);
+	static std::string::size_type FindLastPathSeparator(const std::string& s);
 	/**
     * This class contains a set of terms to replace in a string. It is used
 	* with CdlTkUtil::MultiReplace().
@@ -276,7 +284,7 @@
 		std::string::const_iterator pWord = pChar;
 		for (; ; ++pChar)
 			{
-			if (pChar == aString.end() || ws.find_first_of(*pChar) != string::npos)
+			  if (pChar == aString.end() || ws.find_first_of(*pChar) != std::string::npos)
 				{
 				if (pWord != pChar)
 					{