**************************/
static const std::string rules = "rules";
-static const std::string preprocs = "preprocs";
+static const std::string modules = "modules";
static const ConvertMap profile_rules_api =
static const ConvertMap profile_preprocs_api =
{
"profile_preprocs",
- ctor<&preprocs>,
+ ctor<&modules>,
};
const ConvertMap* profile_rules_map = &profile_rules_api;
val = util::get_rule_option_args(data_stream);
std::istringstream subopts(val);
- while(subopts >> val)
+ while(util::get_string(subopts, keyword, ":"))
{
bool tmpval = true;
- util::trim(val);
- std::size_t keyword_pos = val.find_first_of(':');
- std::string keyword;
+ val = std::string();
+ std::string tmp_str;
- if (keyword_pos != std::string::npos)
- {
- keyword = val.substr(0, keyword_pos);
- val = val.substr(keyword_pos + 1, std::string::npos);
- }
- else
- {
- keyword = val;
- val = std::string();
- }
+ // get the rest of this option
+ while(subopts >> tmp_str)
+ val += tmp_str + " ";
- // necessary since get_line and substr return strings with whitespace.
+ // necessary since options contain whitespace
util::trim(keyword);
util::trim(val);