TinyURDF 1.0.0
Loading...
Searching...
No Matches
utils.cc File Reference
Include dependency graph for utils.cc:

Functions

void str2array (const char *str, double *arr)
 
void str2double (const char *in, double &num_)
 Converts a string to a double value in a locale-safe manner.
 
void split (const std::string &str, std::vector< std::string > &split_result, const std::string &delimiter)
 Splits a string by a delimiter into a vector of strings.
 

Function Documentation

◆ split()

void split ( const std::string &  str,
std::vector< std::string > &  split_result,
const std::string &  delimiter 
)

Splits a string by a delimiter into a vector of strings.

Parameters
strThe input string to split.
split_resultVector to store the resulting substrings.
delimiterThe delimiter used for splitting the string.

◆ str2array()

void str2array ( const char *  str,
double *  arr 
)

◆ str2double()

void str2double ( const char *  in,
double &  num_ 
)

Converts a string to a double value in a locale-safe manner.