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

Go to the source code of this file.

Functions

template<class Iter >
std::reverse_iterator< Iter > rev (Iter i)
 
CppToken classNameFromIdentifier (const CppToken &identifier)
 
std::string pruneClassName (const CppToken &identifier)
 
std::string readFile (const std::string &filename)
 
std::vector< CppTokenexplode (CppToken token, const char *delim)
 

Function Documentation

◆ classNameFromIdentifier()

CppToken classNameFromIdentifier ( const CppToken identifier)

Definition at line 59 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ explode()

std::vector< CppToken > explode ( CppToken  token,
const char *  delim 
)

Definition at line 121 of file utils.cpp.

◆ pruneClassName()

std::string pruneClassName ( const CppToken identifier)

Definition at line 144 of file utils.cpp.

◆ readFile()

std::string readFile ( const std::string &  filename)

Definition at line 79 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rev()

template<class Iter >
std::reverse_iterator< Iter > rev ( Iter  i)
inline

Definition at line 32 of file utils.h.

Here is the caller graph for this function: