2003-09-08 17:37:44 +02:00
|
|
|
#ifndef ARABICA_UTILS_UCS2_UTF16_H
|
|
|
|
#define ARABICA_UTILS_UCS2_UTF16_H
|
2003-09-13 01:15:14 +02:00
|
|
|
|
2003-09-08 17:37:44 +02:00
|
|
|
#include <locale>
|
2003-09-13 01:15:14 +02:00
|
|
|
|
2003-09-11 15:01:00 +02:00
|
|
|
namespace Arabica
|
|
|
|
{
|
2007-09-10 18:27:43 +02:00
|
|
|
namespace convert
|
|
|
|
{
|
|
|
|
namespace impl
|
2003-09-11 15:01:00 +02:00
|
|
|
{
|
2003-09-13 01:15:14 +02:00
|
|
|
|
2003-09-15 12:03:41 +02:00
|
|
|
std::codecvt_base::result ucs2_2_utf16(bool be,
|
|
|
|
wchar_t const* from, wchar_t const* from_end, wchar_t const*& from_next,
|
|
|
|
char* to, char* to_limit, char*& to_next);
|
|
|
|
std::codecvt_base::result utf16_2_ucs2(bool be,
|
|
|
|
char const* from, char const* from_end, char const*& from_next,
|
|
|
|
wchar_t* to, wchar_t* to_limit, wchar_t*& to_next);
|
2003-09-13 01:15:14 +02:00
|
|
|
|
2007-09-10 18:27:43 +02:00
|
|
|
} // namespace impl
|
|
|
|
} // namepsace convert
|
2003-09-11 15:01:00 +02:00
|
|
|
} // namespace Arabica
|
2003-09-13 01:15:14 +02:00
|
|
|
|
2003-09-08 17:37:44 +02:00
|
|
|
#endif
|
|
|
|
|
2003-09-13 01:15:14 +02:00
|
|
|
|
|
|
|
|