10 std::vector<std::string> options;
12 for (
auto o : options)
20 char* cgv_options = getenv(
"CGV_OPTIONS");
22 std::vector<cgv::utils::token> toks;
23 std::string option_str(cgv_options);
More advanced text processing for splitting text into lines or tokens.
void split_to_tokens(const char *begin, const char *end, std::vector< token > &tokens, const std::string &separators, bool merge_separators, const std::string &open_parenthesis, const std::string &close_parenthesis, const std::string &whitespaces, unsigned int max_nr_tokens)
this function splits a text range into tokens.
std::string to_string(const std::string &v, unsigned int w, unsigned int p, bool)
specialization of conversion from string to strings
char to_upper(char c)
convert char to upper case
bool has_option(const std::string &option)
check whether the system variable CGV_OPTIONS contains the given option (the comparison is case insen...
void enumerate_options(std::vector< std::string > &options)
push back all options provided in the CGV_OPTIONS system variable
Helper functions to access cgv options provided in the CGV_OPTIONS environment variable.
Helper functions to process strings.