22 #ifndef INCLUDED_UTF16STRING
23 #define INCLUDED_UTF16STRING
57 return memcmp(s1, s2, n*
sizeof(
char_type));
64 return (
size_t)(end-s);
70 const char_type *res = std::find(s, end, a);
71 return (res != end)?res:NULL;
106 {
return (c == -1) ? 0 : c; }
static bool eq(const char_type &c1, const char_type &c2)
static bool lt(const char_type &c1, const char_type &c2)
static int compare(const char_type *s1, const char_type *s2, size_t n)
static char_type * copy(char_type *s1, const char_type *s2, size_t n)
static const char_type * find(const char_type *s, size_t n, const char_type &a)
static bool eq_int_type(const int_type &c1, const int_type &c2)
static int_type not_eof(const int_type &c)
static char_type * move(char_type *s1, const char_type *s2, size_t n)
static size_t length(const char_type *s)
std::mbstate_t state_type
std::basic_stringstream< utf16_t, utf16_traits > utf16stringstream
static char_type * assign(char_type *s, size_t n, char_type a)
std::basic_string< utf16_t, utf16_traits > utf16string
static void assign(char_type &c1, const char_type &c2)
static int_type to_int_type(const char_type &c)
static char_type to_char_type(const int_type &c)