Invoice++
Loading...
Searching...
No Matches
utils.h File Reference
#include <iconv.h>
#include <stdexcept>
#include <vector>
#include <sstream>
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

std::string UTF8toISO8859_1 (const std::string &utf8_str)
 converts a UTF8 string to ISO8859-1 / ANSI using iconv
 
template<typename Type>
std::string to_str (const Type &t)
 converts various datatypes to string using ostringstream
 

Function Documentation

◆ to_str()

template<typename Type>
std::string to_str ( const Type & t)

converts various datatypes to string using ostringstream

Returns
data as string
Here is the caller graph for this function:

◆ UTF8toISO8859_1()

std::string UTF8toISO8859_1 ( const std::string & utf8_str)
inline

converts a UTF8 string to ISO8859-1 / ANSI using iconv

Returns
ANSI String
Here is the caller graph for this function: