usbloadergx/source/wstring.hpp
ardi@ist-einmalig.de 164889c917 Searchengine changed: now find games, that hath the search string in it.
e.G. "SPOR" find "ea SPORts", "mario SPORts mix", "SPORe heros" and so on.
2011-11-11 20:15:29 +00:00

29 lines
795 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);
wchar_t *wcscasestr(const wchar_t *s1, const wchar_t *s2);
#endif // !defined(__WSTRING_HPP)