chinese-journal/rudict/rudict/utf8utf16.h

18 lines
305 B
C++

#ifndef UTF8UTF16_H_INCLUDED
#define UTF8UTF16_H_INCLUDED
#include <iostream>
#include <stdexcept>
#include <vector>
#include <string>
#include <cstring>
#include <locale>
std::wstring UTF8to16(const char * in);
std::string UTF16to8(const wchar_t * in);
#endif //UTF8UTF16_H_INCLUDED