--- util.h 2014-08-12 18:08:28.000000000 +0200 +++ util.h 2014-08-12 18:09:20.000000000 +0200 @@ -10,6 +10,7 @@ #define _UTIL_H__ #include +#include namespace Util { bool add_mcookie(const std::string &mcookie, const char *display, @@ -19,6 +20,10 @@ long random(void); long makeseed(void); + int utf8ToUtf16(const char *utf8, const int utf8_length, + uint16_t *utf16, const int utf16_max_length); + bool utf16EqualToAscii(const char *ascii, uint16_t *utf16, int utf16Len); + std::string utf16BufToUtf8String(const uint16_t *utf16Buf, int utf16Len); } #endif /* _UTIL_H__ */