Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function split_unix

boost::program_options::split_unix

Synopsis

// In header: <boost/program_options/parsers.hpp>


 
( cmdline,  seperator = " \t", 
            quote = "'\"", 
            escape = "\\");
 
( cmdline,  seperator = , 
            quote = ,  escape = );

Description

Splits a given string to a collection of single strings which can be passed to command_line_parser. The second parameter is used to specify a collection of possible seperator chars used for splitting. The seperator is defaulted to space " ". Splitting is done in a unix style way, with respect to quotes '"' and escape characters '\'


PrevUpHomeNext