YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
StringFilter.cpp
Go to the documentation of this file.
1
#include "
YAPOG/System/StringFilter.hpp
"
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
YAPOG
src
YAPOG
System
StringFilter.cpp
Generated on Mon Sep 17 2012 22:24:26 for YAPOG by
1.8.1.1