00001 // /////////////////////////////////////////////////////////////////////////// 00002 // xrb_utf8.hpp by Victor Dods, created 2006/06/06 00003 // /////////////////////////////////////////////////////////////////////////// 00004 // Unless a different license was explicitly granted in writing by the 00005 // copyright holder (Victor Dods), this software is freely distributable under 00006 // the terms of the GNU General Public License, version 2. Any works deriving 00007 // from this work must also be released under the GNU GPL. See the included 00008 // file LICENSE for details. 00009 // /////////////////////////////////////////////////////////////////////////// 00010 00011 #if !defined(_XRB_UTF8_HPP_) 00012 #define _XRB_UTF8_HPP_ 00013 00014 #include "xrb.hpp" 00015 00016 #include <string> 00017 00018 namespace Xrb 00019 { 00020 00023 namespace UTF8 00024 { 00025 00037 char const *NextCharacter (char const *current); 00041 bool AreCharactersEqual (char const *c0, char const *c1); 00046 Uint32 Unicode (char const *sequence); 00051 void AppendSequence (std::string *dest, Uint32 unicode); 00052 00053 } // end of namespace UTF8 00054 00055 } // end of namespace Xrb 00056 00057 #endif // !defined(_XRB_UTF8_HPP_) 00058