YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
Convert.hpp
浏览该文件的文档.
1 /*
2  © 2013 FrankHB.
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 
28 #ifndef INC_CHRLib_Convert_hpp
29 #define INC_CHRLib_Convert_hpp 1
30 
31 #include "YModules.h"
32 #include YFM_CHRLib_CharacterMapping
33 #include <ystdex/any_iterator.hpp> // for ystdex::input_monomorphic_iterator;
34 
35 namespace CHRLib
36 {
37 
38 template<typename _tIn, typename _fConv>
40 ConvertCharacter(_fConv f, ucs2_t& uc, _tIn&& i, ConversionState&& st)
41 {
42  return f(uc, ystdex::input_monomorphic_iterator(std::ref(i)),
43  std::move(st));
44 }
45 template<typename _tIn, typename _fConv>
47 ConvertCharacter(_fConv f, _tIn&& i, ConversionState&& st)
48 {
49  return f(ystdex::input_monomorphic_iterator(std::ref(i)), std::move(st));
50 }
51 
52 } // namespace CHRLib;
53 
54 #endif
55 
ConversionResult
编码转换结果。
Definition: chrmap.h:75
ConversionResult ConvertCharacter(_fConv f, ucs2_t &uc, _tIn &&i, ConversionState &&st)
Definition: Convert.hpp:40
编码转换状态。
Definition: chrmap.h:89
_tWidget _fCallable && f
Definition: ywgtevt.h:597
动态泛型输入迭代器。
char16_t ucs2_t
UCS-2 字符类型。
Definition: chrdef.h:44
动态泛型迭代器。