Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Loading...
Searching...
No Matches
Functions
utilities::string Namespace Reference

Functions

std::vector< std::string > split (const std::string &str, char delimiter)
 
std::string hexify (unsigned char n)
 
std::string to_lower (std::string x)
 
std::string to_upper (std::string x)
 
bool string_to_bool (const std::string &x)
 
unsigned int ascii_hex_string_to_uint (std::string str)
 
template<typename T , typename std::enable_if< std::is_arithmetic< T >::value >::type * = nullptr>
bool string_to_value (const std::string &str, T &result)
 
std::string trim_newlines (std::string text)
 

Function Documentation

◆ ascii_hex_string_to_uint()

unsigned int utilities::string::ascii_hex_string_to_uint ( std::string  str)
inline

◆ hexify()

std::string utilities::string::hexify ( unsigned char  n)
inline

◆ split()

std::vector< std::string > utilities::string::split ( const std::string &  str,
char  delimiter 
)
inline

◆ string_to_bool()

bool utilities::string::string_to_bool ( const std::string &  x)
inline

◆ string_to_value()

template<typename T , typename std::enable_if< std::is_arithmetic< T >::value >::type * = nullptr>
bool utilities::string::string_to_value ( const std::string &  str,
T &  result 
)
inline

◆ to_lower()

std::string utilities::string::to_lower ( std::string  x)
inline

◆ to_upper()

std::string utilities::string::to_upper ( std::string  x)
inline

◆ trim_newlines()

std::string utilities::string::trim_newlines ( std::string  text)
inline