29 #include <boost/format.hpp> 30 #include <boost/tokenizer.hpp> 32 #include "../runtime/ContainerIO.h" 40 vector<string> result;
41 boost::escaped_list_separator<char> sep(
'\\',
':');
42 boost::tokenizer< boost::escaped_list_separator<char> > tok(value, sep);
43 copy(tok.begin(), tok.end(), back_inserter(result));
48 const vector<string>& key,
50 const vector<string>& previous) {
52 vector<string> values;
55 }
catch (
const std::exception& e) {
56 throw invalid_argument(
57 boost::str(boost::format(
"Invalid %1% (option %2%) value `%3%': %4%")
68 vector<string> result;
69 for (vector<string>::const_iterator it = values.begin();
70 it != values.end(); ++it) {
71 const string value = *it;
73 copy(previous.begin(), previous.end(),
74 inserter(result, result.end()));
76 result.push_back(value);
detail::set_element_sequence_style< detail::element_sequence_style > element_sequence(const string &separator, const string &first_separator, const string &last_separator)
vector< string > splitSequenceValue(const string &value)
const detail::set_container_style< detail::container_style > container_none
vector< string > mergeSequenceValue(const string &description, const vector< string > &key, const string &raw, const vector< string > &previous)