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 | |
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.
|
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.