#include "bbtkUtilities.h"
-
+
namespace bbtk
{
+
+bool Utilities::loosematch(std::string stdLine,std::string stdOptions)
+{
+ bool result=false;
+ std::vector<std::string> tokens;
+ SplitString ( stdOptions,"|", tokens);
+ int i,size=tokens.size();
+ for (i=0; i<size; i++)
+ {
+#ifdef WIN32
+ if ( strcmpi(stdLine.c_str(),tokens[i].c_str())==0)
+ {
+ result=true;
+ }
+#else
+ if ( strcasecmp(stdLine.c_str(),tokens[i].c_str())==0)
+ {
+ result=true;
+ }
+#endif
+
+ }
+ return result;
+}
+
+
+
}