DaZeus  2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
utils.cpp File Reference
#include "utils.h"
Include dependency graph for utils.cpp:

Go to the source code of this file.

Functions

std::string strToLower (const std::string &f)
 
std::string strToUpper (const std::string &f)
 
std::string strToIdentifier (const std::string &f)
 
std::string trim (const std::string &s)
 
bool contains (std::string x, char v)
 
bool startsWith (std::string x, std::string y, bool caseInsensitive)
 
std::vector< std::string > split (const std::string &s, const std::string &sep)
 
std::vector< std::string > & operator<< (std::vector< std::string > &x, const char *v)
 
std::vector< std::string >
::iterator 
find_ci (std::vector< std::string > &v, const std::string &s)
 

Function Documentation

bool contains ( std::string  x,
char  v 
)

Definition at line 53 of file utils.cpp.

std::vector<std::string>::iterator find_ci ( std::vector< std::string > &  v,
const std::string &  s 
)

Definition at line 88 of file utils.cpp.

std::vector<std::string>& operator<< ( std::vector< std::string > &  x,
const char *  v 
)

Definition at line 83 of file utils.cpp.

std::vector<std::string> split ( const std::string &  s,
const std::string &  sep 
)

Definition at line 65 of file utils.cpp.

bool startsWith ( std::string  x,
std::string  y,
bool  caseInsensitive 
)

Definition at line 57 of file utils.cpp.

std::string strToIdentifier ( const std::string &  f)

Definition at line 26 of file utils.cpp.

std::string strToLower ( const std::string &  f)

Definition at line 8 of file utils.cpp.

std::string strToUpper ( const std::string &  f)

Definition at line 17 of file utils.cpp.

std::string trim ( const std::string &  s)

Definition at line 36 of file utils.cpp.