new pattern, 0.1.2
This commit is contained in:
parent
d7341373d4
commit
2010c7efde
|
@ -13,6 +13,10 @@ private:
|
||||||
string path;
|
string path;
|
||||||
PP[string] properties;
|
PP[string] properties;
|
||||||
bool readed = false;
|
bool readed = false;
|
||||||
|
const string pattern = "^( |\\t)*(((\\w(\\w|-)+)(( |\\t)*(=>|=){1}"
|
||||||
|
~ "( |\\t)*)(?!\\/(\\/|\\*))(([^ >\"'=\\n\\t#;].*?)|(\"(.+)\")"
|
||||||
|
~ "|('(.+)')){1})|(\\[(\\w(\\w|-)+)\\])|(\\[()\\]))( |\\t)*"
|
||||||
|
~ "(( |\\t)(#|;|\\/\\/|\\/\\*).*)?$";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parameter and its value with the ability to convert to the desired data type
|
* Parameter and its value with the ability to convert to the desired data type
|
||||||
|
@ -69,8 +73,6 @@ private:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string pattern = "^ *(\\w+)(( +=> +)|( += +))(?!\\/\\/)(([^ >\"'\\n#;].*?)|"
|
|
||||||
~ "(\"(.+?)\")|('(.+?)')){1} *( #.*?)?( ;.*?)?( \\/\\/.*)?$";
|
|
||||||
auto regular = regex(pattern, "m");
|
auto regular = regex(pattern, "m");
|
||||||
|
|
||||||
while (!configuration.eof())
|
while (!configuration.eof())
|
||||||
|
|
Loading…
Reference in New Issue