OpenJAUS Software Development Kit  4.3.1
Functions
String.h File Reference
#include <cstring>

Functions

std::string & ltrim (std::string &s, const char *t=" \\\)
 
static std::string & rtrim (std::string &s, const char *t=" \\\)
 
static std::string & trim (std::string &s, const char *t=" \\\)
 
static std::vector< std::string > & split (const std::string &s, char delim, std::vector< std::string > &elems)
 
static std::vector< std::string > split (const std::string &s, char delim)
 

Function Documentation

§ ltrim()

std::string& ltrim ( std::string &  s,
const char *  t = " \t\n\r\f\v" 
)
inline

§ rtrim()

static std::string& rtrim ( std::string &  s,
const char *  t = " \t\n\r\f\v" 
)
inlinestatic

§ split() [1/2]

static std::vector<std::string>& split ( const std::string &  s,
char  delim,
std::vector< std::string > &  elems 
)
inlinestatic

§ split() [2/2]

static std::vector<std::string> split ( const std::string &  s,
char  delim 
)
inlinestatic

§ trim()

static std::string& trim ( std::string &  s,
const char *  t = " \t\n\r\f\v" 
)
inlinestatic