00001 /* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */ 00002 00003 /* 00004 * Break processing in a Unicode sequence. Designed to be used in a 00005 * generic text renderer. 00006 * 00007 * Copyright (C) 2015 Wu Yongwei <wuyongwei at gmail dot com> 00008 * 00009 * This software is provided 'as-is', without any express or implied 00010 * warranty. In no event will the author be held liable for any damages 00011 * arising from the use of this software. 00012 * 00013 * Permission is granted to anyone to use this software for any purpose, 00014 * including commercial applications, and to alter it and redistribute 00015 * it freely, subject to the following restrictions: 00016 * 00017 * 1. The origin of this software must not be misrepresented; you must 00018 * not claim that you wrote the original software. If you use this 00019 * software in a product, an acknowledgement in the product 00020 * documentation would be appreciated but is not required. 00021 * 2. Altered source versions must be plainly marked as such, and must 00022 * not be misrepresented as being the original software. 00023 * 3. This notice may not be removed or altered from any source 00024 * distribution. 00025 */ 00026 00036 #ifndef UNIBREAKBASE_H 00037 #define UNIBREAKBASE_H 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 #define UNIBREAK_VERSION 0x0300 00044 extern const int unibreak_version; 00045 00046 #ifndef UNIBREAK_UTF_TYPES_DEFINED 00047 #define UNIBREAK_UTF_TYPES_DEFINED 00048 typedef unsigned char utf8_t; 00049 typedef unsigned short utf16_t; 00050 typedef unsigned int utf32_t; 00051 #endif 00052 00053 #ifdef __cplusplus 00054 } 00055 #endif 00056 00057 #endif /* UNIBREAKBASE_H */