]> Creatis software - bbtk.git/blob - kernel/src/bbtkUtilities.cxx
9a6b0283e3ca0fc0ea3f36ee5d04f7967aeb78dc
[bbtk.git] / kernel / src / bbtkUtilities.cxx
1 #include "bbtkUtilities.h"
2  
3
4 namespace bbtk
5 {
6
7
8 bool Utilities::loosematch(std::string stdLine,std::string stdOptions) 
9 {
10         bool result=false;
11         char charTmp;
12           std::vector<std::string> tokens;
13           SplitString ( stdOptions,"|", tokens);
14                           int j,sizeStdLineTmp;
15           int i,size=tokens.size();  
16           for (i=0; i<size; i++)
17           {               
18                   if ( strcasecmp(stdLine.c_str(),tokens[i].c_str())==0) 
19                   { 
20                           result=true; 
21                   }               
22           }
23           return result;
24 }
25
26
27
28 }