btftoolchain
util.h File Reference
#include <fstream>
#include <iostream>
#include <string>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 helper
 
 helper::util
 

Functions

std::string helper::util::wstrTostr (const std::wstring &in)
 Converts a wstirng to string. More...
 
std::wstring helper::util::strTowstr (const std::string &in)
 Converts a string to wstring. More...
 
void helper::util::getline (std::ifstream &file, std::string &out)
 wrapper for std::getline that removes CR (\r) at the end of the line. More...
 
template<typename To , typename From >
To helper::util::safe_dynamic_cast (From src) noexcept
 Template to enable a safe dynamic cast by catching nullptr. More...