]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
key word -> HORIZONTAL VERTICAL TOP RIGHT BOTTM LEFT
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index f15e7080650ce658a9bc018695552c9722905d57..9a6b0283e3ca0fc0ea3f36ee5d04f7967aeb78dc 100644 (file)
@@ -4,4 +4,25 @@
 namespace bbtk
 {
 
+
+bool Utilities::loosematch(std::string stdLine,std::string stdOptions) 
+{
+       bool result=false;
+       char charTmp;
+         std::vector<std::string> tokens;
+         SplitString ( stdOptions,"|", tokens);
+                         int j,sizeStdLineTmp;
+         int i,size=tokens.size();  
+         for (i=0; i<size; i++)
+         {               
+                 if ( strcasecmp(stdLine.c_str(),tokens[i].c_str())==0) 
+                 { 
+                         result=true; 
+                 }               
+         }
+         return result;
+}
+
+
+
 }