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>
39
ConversionResult
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>
46
ConversionResult
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
CHRLib::ConversionResult
ConversionResult
编码转换结果。
Definition:
chrmap.h:75
CHRLib::ConvertCharacter
ConversionResult ConvertCharacter(_fConv f, ucs2_t &uc, _tIn &&i, ConversionState &&st)
Definition:
Convert.hpp:40
CHRLib::ConversionState
编码转换状态。
Definition:
chrmap.h:89
YSLib::UI::f
_tWidget _fCallable && f
Definition:
ywgtevt.h:597
ystdex::any_input_iterator
动态泛型输入迭代器。
Definition:
any_iterator.hpp:236
CHRLib::ucs2_t
char16_t ucs2_t
UCS-2 字符类型。
Definition:
chrdef.h:44
any_iterator.hpp
动态泛型迭代器。
YModules.h
YFramework
include
CHRLib
Convert.hpp
生成于 2014年 五月 30日 星期五 00:14:50 , 为 YSTest使用
1.8.7