Salome HOME
*** empty log message ***
[modules/multipr.git] / src / MULTIPR / MULTIPR_Utils.hxx
index 01b5a738accc40d14132c0392907ce7ec1e1d386..3300579f33689474fa9c4866b475fb221f280c44 100644 (file)
@@ -36,6 +36,15 @@ namespace multipr
 void trim(char* pStr, char pChar=' ');
 
 
+/**
+ * Returns true iff the given string starts by prefix.
+ * \param  pStr       any valid C string ending with the char '\0'.
+ * \param  pStrPrefix any valid C string ending with the char '\0'.
+ * \return true iff the given string starts by prefix.
+ */
+bool startWith(const char* pStr, const char* pStrPrefix);
+
 /**
  * Removes the extension (suffix) of a filename.
  * Example: removeExtension("agregat100grains_12pas.med", ".med") -> "agregat100grains_12pas"