Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TChar< CharType > Struct Template Reference

#include <Char.h>

+ Inheritance diagram for TChar< CharType >:
+ Collaboration diagram for TChar< CharType >:

Public Member Functions

bool IsUpper (WIDECHAR Char)
 
bool IsLower (WIDECHAR Char)
 
bool IsAlpha (WIDECHAR Char)
 
bool IsGraph (WIDECHAR Char)
 
bool IsPrint (WIDECHAR Char)
 
bool IsPunct (WIDECHAR Char)
 
bool IsAlnum (WIDECHAR Char)
 
bool IsDigit (WIDECHAR Char)
 
bool IsHexDigit (WIDECHAR Char)
 
bool IsWhitespace (WIDECHAR Char)
 
bool IsControl (WIDECHAR Char)
 
bool IsUpper (ANSICHAR Char)
 
bool IsLower (ANSICHAR Char)
 
bool IsAlpha (ANSICHAR Char)
 
bool IsGraph (ANSICHAR Char)
 
bool IsPrint (ANSICHAR Char)
 
bool IsPunct (ANSICHAR Char)
 
bool IsAlnum (ANSICHAR Char)
 
bool IsDigit (ANSICHAR Char)
 
bool IsHexDigit (ANSICHAR Char)
 
bool IsWhitespace (ANSICHAR Char)
 
bool IsControl (ANSICHAR Char)
 
bool IsWhitespace (UTF8CHAR Char)
 

Static Public Member Functions

static CharType ToUpper (CharType Char)
 
static CharType ToLower (CharType Char)
 
static bool IsUpper (CharType Char)
 
static bool IsLower (CharType Char)
 
static bool IsAlpha (CharType Char)
 
static bool IsGraph (CharType Char)
 
static bool IsPrint (CharType Char)
 
static bool IsPunct (CharType Char)
 
static bool IsAlnum (CharType Char)
 
static bool IsDigit (CharType Char)
 
static bool IsHexDigit (CharType Char)
 
static bool IsWhitespace (CharType Char)
 
static bool IsControl (CharType Char)
 
static bool IsOctDigit (CharType Char)
 
static int32 ConvertCharDigitToInt (CharType Char)
 
static bool IsIdentifier (CharType Char)
 
static bool IsUnderscore (CharType Char)
 
static constexpr FORCEINLINE uint32 ToUnsigned (CharType Char)
 
- Static Public Member Functions inherited from TCharBase< CharType, sizeof(CharType)>
static bool IsLinebreak (CharType Char)
 

Additional Inherited Members

- Static Public Attributes inherited from TCharBase< CharType, sizeof(CharType)>
static constexpr CharType LineFeed
 
static constexpr CharType VerticalTab
 
static constexpr CharType FormFeed
 
static constexpr CharType CarriageReturn
 
static constexpr CharType NextLine
 
static constexpr CharType LineSeparator
 
static constexpr CharType ParagraphSeparator
 

Detailed Description

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.

Definition at line 74 of file Char.h.

Member Function Documentation

◆ ConvertCharDigitToInt()

template<typename CharType >
static int32 TChar< CharType >::ConvertCharDigitToInt ( CharType Char)
inlinestatic

Definition at line 109 of file Char.h.

◆ IsAlnum() [1/3]

bool TChar< ANSICHAR >::IsAlnum ( ANSICHAR Char)
inline

Definition at line 168 of file Char.h.

◆ IsAlnum() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsAlnum ( CharType Char)
static

◆ IsAlnum() [3/3]

bool TChar< WIDECHAR >::IsAlnum ( WIDECHAR Char)
inline

Definition at line 152 of file Char.h.

◆ IsAlpha() [1/3]

bool TChar< ANSICHAR >::IsAlpha ( ANSICHAR Char)
inline

Definition at line 164 of file Char.h.

◆ IsAlpha() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsAlpha ( CharType Char)
static

◆ IsAlpha() [3/3]

bool TChar< WIDECHAR >::IsAlpha ( WIDECHAR Char)
inline

Definition at line 148 of file Char.h.

◆ IsControl() [1/3]

bool TChar< ANSICHAR >::IsControl ( ANSICHAR Char)
inline

Definition at line 172 of file Char.h.

◆ IsControl() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsControl ( CharType Char)
static

◆ IsControl() [3/3]

bool TChar< WIDECHAR >::IsControl ( WIDECHAR Char)
inline

Definition at line 156 of file Char.h.

◆ IsDigit() [1/3]

bool TChar< ANSICHAR >::IsDigit ( ANSICHAR Char)
inline

Definition at line 169 of file Char.h.

◆ IsDigit() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsDigit ( CharType Char)
static

◆ IsDigit() [3/3]

bool TChar< WIDECHAR >::IsDigit ( WIDECHAR Char)
inline

Definition at line 153 of file Char.h.

◆ IsGraph() [1/3]

bool TChar< ANSICHAR >::IsGraph ( ANSICHAR Char)
inline

Definition at line 165 of file Char.h.

◆ IsGraph() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsGraph ( CharType Char)
static

◆ IsGraph() [3/3]

bool TChar< WIDECHAR >::IsGraph ( WIDECHAR Char)
inline

Definition at line 149 of file Char.h.

◆ IsHexDigit() [1/3]

bool TChar< ANSICHAR >::IsHexDigit ( ANSICHAR Char)
inline

Definition at line 170 of file Char.h.

◆ IsHexDigit() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsHexDigit ( CharType Char)
static

◆ IsHexDigit() [3/3]

bool TChar< WIDECHAR >::IsHexDigit ( WIDECHAR Char)
inline

Definition at line 154 of file Char.h.

◆ IsIdentifier()

template<typename CharType >
static bool TChar< CharType >::IsIdentifier ( CharType Char)
inlinestatic

Definition at line 114 of file Char.h.

◆ IsLower() [1/3]

bool TChar< ANSICHAR >::IsLower ( ANSICHAR Char)
inline

Definition at line 163 of file Char.h.

◆ IsLower() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsLower ( CharType Char)
static

◆ IsLower() [3/3]

bool TChar< WIDECHAR >::IsLower ( WIDECHAR Char)
inline

Definition at line 147 of file Char.h.

◆ IsOctDigit()

template<typename CharType >
static bool TChar< CharType >::IsOctDigit ( CharType Char)
inlinestatic

Definition at line 104 of file Char.h.

◆ IsPrint() [1/3]

bool TChar< ANSICHAR >::IsPrint ( ANSICHAR Char)
inline

Definition at line 166 of file Char.h.

◆ IsPrint() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsPrint ( CharType Char)
static

◆ IsPrint() [3/3]

bool TChar< WIDECHAR >::IsPrint ( WIDECHAR Char)
inline

Definition at line 150 of file Char.h.

◆ IsPunct() [1/3]

bool TChar< ANSICHAR >::IsPunct ( ANSICHAR Char)
inline

Definition at line 167 of file Char.h.

◆ IsPunct() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsPunct ( CharType Char)
static

◆ IsPunct() [3/3]

bool TChar< WIDECHAR >::IsPunct ( WIDECHAR Char)
inline

Definition at line 151 of file Char.h.

◆ IsUnderscore()

template<typename CharType >
static bool TChar< CharType >::IsUnderscore ( CharType Char)
inlinestatic

Definition at line 119 of file Char.h.

◆ IsUpper() [1/3]

bool TChar< ANSICHAR >::IsUpper ( ANSICHAR Char)
inline

Definition at line 162 of file Char.h.

◆ IsUpper() [2/3]

template<typename CharType >
static bool TChar< CharType >::IsUpper ( CharType Char)
static

◆ IsUpper() [3/3]

bool TChar< WIDECHAR >::IsUpper ( WIDECHAR Char)
inline

Definition at line 146 of file Char.h.

◆ IsWhitespace() [1/4]

bool TChar< ANSICHAR >::IsWhitespace ( ANSICHAR Char)
inline

Definition at line 171 of file Char.h.

◆ IsWhitespace() [2/4]

template<typename CharType >
static bool TChar< CharType >::IsWhitespace ( CharType Char)
static

◆ IsWhitespace() [3/4]

bool TChar< UTF8CHAR >::IsWhitespace ( UTF8CHAR Char)
inline

Definition at line 174 of file Char.h.

◆ IsWhitespace() [4/4]

bool TChar< WIDECHAR >::IsWhitespace ( WIDECHAR Char)
inline

Definition at line 155 of file Char.h.

◆ ToLower()

template<typename CharType >
static CharType TChar< CharType >::ToLower ( CharType Char)
inlinestatic

Only converts ASCII characters, same as CRT to[w]upper() with standard C locale

Definition at line 87 of file Char.h.

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

Definition at line 132 of file Char.h.

◆ ToUpper()

template<typename CharType >
static CharType TChar< CharType >::ToUpper ( CharType Char)
inlinestatic

Only converts ASCII characters, same as CRT to[w]upper() with standard C locale

Definition at line 79 of file Char.h.


The documentation for this struct was generated from the following file: