string_utilities.cpp File Reference
#include "string_utilities.h"
#include <cstdlib>
#include <regex.h>
Include dependency graph for string_utilities.cpp:

Go to the source code of this file.


 The namespace containing all the ARGoS related code.


void argos::Tokenize (const std::string &str_string, std::vector< std::string > &vec_tokens, const std::string &str_delimiters=" ")
 Tokenizes the given string according to the wanted delimiters (by default just a " "). More...
std::string argos::StringToUpperCase (const std::string &str_string)
 Converts a string to upper case. More...
std::string argos::StringToLowerCase (const std::string &str_string)
 Converts a string to lower case. More...
void argos::Replace (std::string &str_buffer, const std::string &str_original, const std::string &str_new)
 Searches into str_buffer for occurrences of str_original and substitutes them with str_new. More...
bool argos::MatchPattern (const std::string &str_input, const std::string &str_pattern)
 Returns true if str_pattern is matched by str_input. More...
std::string & argos::ExpandEnvVariables (std::string &str_buffer)
 Searches into str_buffer for occurrences of an environment variable of the form $VAR and substitutes them with the value of the variable. More...