namespace WrtDeviceApis {
namespace Commons {
-
bool validate(const std::string &pattern,
- const std::string &value,
- unsigned int options)
+ const std::string &value,
+ unsigned int options)
{
pcrecpp::RE_Options pcreOpt;
if (options & VALIDATE_MATCH_CASELESS) {
}
std::string filter(const std::string &pattern,
- const std::string &value)
+ const std::string &value)
{
pcrecpp::RE re(pattern);
std::string ret = static_cast<std::string>(value);
re.GlobalReplace(UPPER_P, &ret);
return ret;
}
-
}
} // WrtDeviceApisCommon