1 /* 2 3 character conversion (<-> utf-8 encoding) 4 5 copyright (c) 2015 squell <squell@alumina.nl> 6 7 use, modification, copying and distribution of this software is permitted 8 under the conditions described in the file 'COPYING'. 9 10 Usage: see charconv.h 11 12 Uses partial specialization to encode various characteristics. 13 14 */ 15 16 #ifndef __ZF_CHARCONV_UTF8_HPP 17 #define __ZF_CHARCONV_UTF8_HPP 18 19 #include "charconv.h" 20 21 namespace charset { 22 23 struct utf8; 24 25 template<> conv<>::data conv<utf8>::decode(const char*, std::size_t); 26 template<> std::string conv<utf8>::encode(const void*, std::size_t); 27 28 } 29 30 #endif 31 32