COVISE Core
Functions
string_util.cpp File Reference
#include "string_util.h"
#include <ctype.h>
#include <cstring>
#include <cstdlib>
#include <sstream>
Include dependency graph for string_util.cpp:

Functions

std::string strip (const std::string &str)
 
std::string strip (const char *ch)
 
std::string replace (const std::string &where, const char *what, const char *with, int times)
 
int isIntNumber (const std::string &str)
 
std::vector< std::stringsplit (const std::string &str, char delimiter)
 
std::string toLower (const std::string &str)
 
std::string url_decode (const std::string &str, bool in_path)
 

Function Documentation

◆ isIntNumber()

int isIntNumber ( const std::string str)

◆ replace()

std::string replace ( const std::string where,
const char *  what,
const char *  with,
int  times 
)

◆ split()

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

◆ strip() [1/2]

std::string strip ( const char *  ch)

◆ strip() [2/2]

std::string strip ( const std::string str)

◆ toLower()

std::string toLower ( const std::string str)

◆ url_decode()

std::string url_decode ( const std::string str,
bool  in_path 
)