replace gnu regex wrapper with boost::regex

This commit is contained in:
Andrzej Rybczak
2013-04-06 16:47:03 +02:00
parent 66bd3e9782
commit 2b5f1b9fd4
12 changed files with 226 additions and 310 deletions

View File

@@ -228,7 +228,7 @@ void Configuration::SetDefaults()
playlist_disable_highlight_delay = 5;
message_delay_time = 4;
lyrics_db = 0;
regex_type = REG_ICASE;
regex_type = boost::regex::icase;
lines_scrolled = 2;
search_engine_default_search_mode = 0;
visualizer_sync_interval = 30;
@@ -782,8 +782,12 @@ void Configuration::Read()
}
else if (name == "regular_expressions")
{
if (v != "basic")
regex_type |= REG_EXTENDED;
if (v == "none")
regex_type |= boost::regex::literal;
else if (v == "basic")
regex_type |= boost::regex::basic;
else if (v == "extended")
regex_type |= boost::regex::extended;
}
else if (name == "lines_scrolled")
{