ARGoS  3
A parallel, multi-engine simulator for swarm robotics
core/utility/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.

Namespaces

namespace  argos
 

The namespace containing all the ARGoS related code.


Functions

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 " ").
std::string argos::StringToUpperCase (const std::string &str_string)
 Converts a string to upper case.
std::string argos::StringToLowerCase (const std::string &str_string)
 Converts a string to lower case.
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.
bool argos::MatchPattern (const std::string &str_input, const std::string str_pattern)
 Returns true if str_pattern is matched by str_input.
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.