20 #ifndef REGEXMATCHER_H
21 #define REGEXMATCHER_H
49 alphanumtext = 1 << 4,
65 bool matchConfigBlock (
const string &str,
const string &blockname =
"default" )
const;
73 pair<string, string> matchKeyEqualsValue (
const string &str,
int valueType = alphanumtext )
const;
81 pair<string, string> matchKeyEqualsValue (
const string &str,
const string &key,
int valueType = alphanumtext )
const;
88 pair<double, string> splitDoubleValueUnit (
const string &str )
const;
94 pair<long long int, string> splitIntegerValueUnit (
const string &str )
const;
102 string substituteHomeDir (
const string &source,
const string &homedir )
const;
110 string createRegexMatching (
int type )
const;
116 #endif // REGEXMATCHER_H
Class to handle regex matching used for parsing configuration files.
matchType
An enum to caracterise what shall be matched in a specific case; flaggy.