YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
chrdef.h
浏览该文件的文档.
1 /*
2  Copyright by FrankHB 2009 - 2013.
3 
4  This file is part of the YSLib project, and may only be used,
5  modified, and distributed under the terms of the YSLib project
6  license, LICENSE.TXT. By continuing to use, modify, or distribute
7  this file you indicate that you have read the license and
8  understand and accept it fully.
9 */
10 
33 #ifndef CHRLIB_INC_CHRDEF_H_
34 #define CHRLIB_INC_CHRDEF_H_ 1
35 
36 #include <ydef.h>
37 #include <string> // for std::char_traits;
38 #include "YCLib/Platform.h" // for YF_API;
39 
40 #define CHRLIB_BEGIN namespace CHRLib {
41 #define CHRLIB_END }
42 #define CHRLIB_ ::CHRLib::
43 #define CHRLIB ::CHRLib
44 
45 #define CHRLIB_BEGIN_NAMESPACE(s) namespace s {
46 #define CHRLIB_END_NAMESPACE(s) }
47 
49 
50 using ystdex::byte;
51 using ystdex::size_t;
52 
53 // 字符类型定义。
54 typedef char16_t ucs2_t;
55 typedef char32_t ucs4_t;
56 typedef std::char_traits<ucs4_t>::int_type ucsint_t;
57 
59 
60 #endif
61