engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
TChar< CharType > 模板结构体 参考

TChar Set of utility functions operating on a single character. 更多...

#include <Char.h>

继承自 TCharBase< CharType, Size > .

静态 Public 成员函数

static CharType ToLower (CharType Char)
 Only converts ASCII characters, same as CRT to[w]upper() with standard C locale
 
static constexpr FORCEINLINE uint32 ToUnsigned (CharType Char)
 Avoid sign extension problems with signed characters smaller than int 更多...
 
static CharType ToUpper (CharType Char)
 Only converts ASCII characters, same as CRT to[w]upper() with standard C locale
 

详细描述

template<typename CharType>
struct TChar< CharType >

TChar Set of utility functions operating on a single character.

The functions are specialized for ANSICHAR and TCHAR character types. You can use the typedefs FChar and FCharAnsi for convenience.

成员函数说明

◆ ToUnsigned()

template<typename CharType >
static constexpr FORCEINLINE uint32 TChar< CharType >::ToUnsigned ( CharType  Char)
inlinestaticconstexpr

Avoid sign extension problems with signed characters smaller than int

E.g. 'Ö' - 'A' is negative since the char 'Ö' (0xD6) is negative and gets sign-extended to the 32-bit int 0xFFFFFFD6 before subtraction happens.

Mainly needed for subtraction and addition.


该结构体的文档由以下文件生成: