YAPOG  0.0.1
Yet Another Pokemon Online Game
StringFilter.cpp
Go to the documentation of this file.
2 
3 #include <boost/regex.hpp>
4 
5 namespace yap
6 {
7  bool StringFilter::IsNumeric (const String& str)
8  {
9  return CheckRegex (str, "\\d");
10  }
11 
12  bool StringFilter::CheckRegex (const String& str, const String& regexExp)
13  {
14  return boost::regex_match (str, boost::regex (regexExp));
15  }
16 } // !namespace yap