#include <cstdlib>#include <cerrno>#include <sstream>#include "conversions.h"#include "log.h"Include dependency graph for conversions.cpp:

Go to the source code of this file.
Functions | |
| string | itos (int i) |
| string | iptos (unsigned long ip) |
| bool | try_get_long (const string &value, long &i) |
| bool | try_get_double (const string &value, double &d) |
| bool | try_get_bool (const string &value, bool &b) |
| double | get_double (const string &value) |
| long | get_long (const string &value) |
| bool | get_bool (const string &value) |
| void | utf8tows (const char *utf8, std::wstring &ws) |
| Convert UTF-8 string to wchar_t string. | |
| void | appendW (long w, std::string &utf8) |
| Convert one unicode character to UTF-8. | |
| void | wstoutf8 (const std::wstring &ws, std::string &utf8) |
| Convert wchar_t strinf to UTF-8 string. | |
|
||||||||||||
|
Convert one unicode character to UTF-8.
Definition at line 240 of file conversions.cpp. References LOGE. Referenced by wstoutf8(). |
|
|
Definition at line 119 of file conversions.cpp. References Log::die(), Log::error(), g_log, and try_get_bool(). Referenced by Settings::isTrue(). Here is the call graph for this function: ![]() |
|
|
Definition at line 93 of file conversions.cpp. References Log::die(), Log::error(), g_log, and try_get_double(). Referenced by Settings::getDouble(). Here is the call graph for this function: ![]() |
|
|
Definition at line 106 of file conversions.cpp. References Log::die(), Log::error(), g_log, and try_get_long(). Referenced by Settings::getInt(). Here is the call graph for this function: ![]() |
|
|
convert int with IP address to string ip is in network byte order Definition at line 20 of file conversions.cpp. |
|
|
convert integer to string Definition at line 12 of file conversions.cpp. |
|
||||||||||||
|
Definition at line 76 of file conversions.cpp. Referenced by get_bool(). |
|
||||||||||||
|
Definition at line 57 of file conversions.cpp. References g_log, and Log::perror(). Referenced by get_double(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 38 of file conversions.cpp. References g_log, and Log::perror(). Referenced by get_long(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Convert UTF-8 string to wchar_t string.
Definition at line 140 of file conversions.cpp. References LOGE. Referenced by Console::addConsoleMessage(), Translator::loadFile(), FontFTGL::RenderUTF8(), and Translator::translateW(). |
|
||||||||||||
|
Convert wchar_t strinf to UTF-8 string.
Definition at line 281 of file conversions.cpp. References appendW(). Referenced by Console::addConsoleMessage(), and InputString::updateCachedStrings(). Here is the call graph for this function: ![]() |
1.4.5