|
std::vector< std::string > | split (const std::string &s, char delim) |
| Split a string by a delim. More...
|
|
template<typename T > |
std::string | join (const T &v, std::string delim=",") |
| Simple function to join a string. More...
|
|
template<typename T > |
std::string | rjoin (const T &v, std::string delim=",") |
| Join a string in reverse order. More...
|
|
std::string & | ltrim (std::string &str) |
| Trim whitespace from left of string. More...
|
|
std::string & | ltrim (std::string &str, const std::string &filter) |
| Trim anything from left of string. More...
|
|
std::string & | rtrim (std::string &str) |
| Trim whitespace from right of string. More...
|
|
std::string & | rtrim (std::string &str, const std::string &filter) |
| Trim anything from right of string. More...
|
|
std::string & | trim (std::string &str) |
| Trim whitespace from string. More...
|
|
std::string & | trim (std::string &str, const std::string filter) |
| Trim anything from string. More...
|
|
std::string | trim_copy (const std::string &str) |
| Make a copy of the string and then trim it. More...
|
|
std::string | trim_copy (const std::string &str, const std::string &filter) |
| Make a copy of the string and then trim it, any filter string can be used (any char in string is filtered) More...
|
|
void | format_help (std::stringstream &out, std::string name, std::string description, size_t wid) |
| Print a two part "help" string. More...
|
|
template<typename T > |
bool | valid_first_char (T c) |
| Verify the first character of an option. More...
|
|
template<typename T > |
bool | valid_later_char (T c) |
| Verify following characters of an option. More...
|
|
bool | valid_name_string (const std::string &str) |
| Verify an option name. More...
|
|
std::string | to_lower (std::string str) |
| Return a lower case version of a string. More...
|
|
std::vector< std::string > | split_up (std::string str) |
| Split a string '"one two" "three"' into 'one two', 'three'. More...
|
|
std::string | fix_newlines (std::string leader, std::string input) |
|
template<typename T , enable_if_t< std::is_integral< T >::value &&std::is_signed< T >::value, detail::enabler > = detail::dummy> |
constexpr const char * | type_name () |
| This one should not be used, since vector types print the internal type. More...
|
|
template<typename T , enable_if_t<(std::is_integral< T >::value &&std::is_signed< T >::value)||std::is_enum< T >::value, detail::enabler > = detail::dummy> |
bool | lexical_cast (std::string input, T &output) |
| Signed integers / enums. More...
|
|
bool | split_short (const std::string ¤t, std::string &name, std::string &rest) |
|
bool | split_long (const std::string ¤t, std::string &name, std::string &value) |
|
std::vector< std::string > | split_names (std::string current) |
|
std::tuple< std::vector< std::string >, std::vector< std::string >, std::string > | get_names (const std::vector< std::string > &input) |
| Get a vector of short names, one of long names, and a single name. More...
|
|