CppParser
Loading...
Searching...
No Matches
string-utils.h File Reference
#include <algorithm>
#include <cstring>
#include <string>
Include dependency graph for string-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t stripChar (char *s, size_t len, char c)
 
void stripChar (std::string &s, char c)
 
std::string & trimBlob (std::string &s)
 
std::string & cleanseIdentifier (std::string &id)
 strips new-line char and collapses multiple white chars. More...
 

Function Documentation

◆ cleanseIdentifier()

std::string & cleanseIdentifier ( std::string &  id)
inline

strips new-line char and collapses multiple white chars.

Definition at line 68 of file string-utils.h.

Here is the call graph for this function:

◆ stripChar() [1/2]

size_t stripChar ( char *  s,
size_t  len,
char  c 
)
inline

Definition at line 30 of file string-utils.h.

Here is the caller graph for this function:

◆ stripChar() [2/2]

void stripChar ( std::string &  s,
char  c 
)
inline

Definition at line 36 of file string-utils.h.

Here is the call graph for this function:

◆ trimBlob()

std::string & trimBlob ( std::string &  s)
inline

Definition at line 42 of file string-utils.h.