23#include "rcpputils/join.hpp"
55std::vector<std::string>
splitString(
const std::string & str,
const std::string & delimiter,
bool remove_empty =
true);
65 const std::map<std::string, std::string> & map,
const std::string & key_val_sep =
"=",
66 const std::string & entry_sep =
", ");
std::string trimWhitespaces(const std::string &str)
Trim whitespaces from both ends of a string.
std::string makeColoredText(const std::string &text, TextColor color)
Add ANSI color escape sequences to display the text in color when printed to console.
std::vector< std::string > splitString(const std::string &str, const std::string &delimiter, bool remove_empty=true)
Split a string into multiple tokens using a specific delimiter string (Delimiter may consist of multi...
std::string printMap(const std::map< std::string, std::string > &map, const std::string &key_val_sep="=", const std::string &entry_sep=", ")
Converts a map to a string representation that is suited for printing to console.
std::string toCamelCase(const std::string &str)
Transform a string to camelCase.
std::string toSnakeCase(const std::string &str)
Transform a string to snake_case.
Fundamental helper classes and utility functions.