usbloadergx/source/wstring.hpp
dimok321 044c48a1bc *Added loop for WBFS init back in
*Replaced all text related stuff with the ones from WiiXplorer (FreeTypeGX/GuiText/...). Some alignments might need be adjusted or maxWidth in pixel of some text parts. Also the text scrolling needs to be adjusted.
2010-09-17 15:15:21 +00:00

26 lines
725 B
C++

/****************************************************************************
* wstring Class
* by Hibernatus
***************************************************************************/
#ifndef __WSTRING_HPP
#define __WSTRING_HPP
#include <string>
class wString : public std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >
{
public:
wString(void) { }
wString(const wchar_t *s);
wString(const std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > &ws);
wString(const std::string &s);
wString &operator=(const std::string &s);
void fromUTF8(const char *s);
std::string toUTF8(void) const;
};
size_t utf8Len(const char *s);
#endif // !defined(__WSTRING_HPP)