COVISE Core
Functions
string_util.h File Reference
#include <string>
#include <vector>
#include "coExport.h"
Include dependency graph for string_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ isIntNumber()

UTILEXPORT int isIntNumber ( const std::string str)

◆ replace()

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

◆ split()

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

◆ strip() [1/2]

UTILEXPORT std::string strip ( const char *  ch)

◆ strip() [2/2]

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

◆ toLower()

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

◆ url_decode()

UTILEXPORT std::string url_decode ( const std::string str,
bool  in_path = false 
)