]> git.tdb.fi Git - libs/core.git/blob - source/stringcodec/ustring.h
Additional adjustments for Poller
[libs/core.git] / source / stringcodec / ustring.h
1 #ifndef MSP_STRINGCODEC_USTRING_H_
2 #define MSP_STRINGCODEC_USTRING_H_
3
4 #include <string>
5
6 namespace Msp {
7 namespace StringCodec {
8
9 typedef int unichar;
10
11 typedef std::basic_string<unichar> ustring;
12
13 inline bool is_valid_unichar(unichar ch)
14 { return ch>=0 && ch<=0x10FFFF && (ch<0xD800 || ch>0xDFFF) && (ch&0xFFFE)!=0xFFFE; }
15
16 } // namespace StringCodec
17 } // namespace Msp
18
19 #endif