UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TChar< CharType > Struct Template Reference

#include <Char.h>

+ Inheritance diagram for TChar< CharType >:

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

Member Function Documentation

◆ ConvertCharDigitToInt()

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

◆ IsAlnum()

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

◆ IsAlpha()

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

◆ IsControl()

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

◆ IsDigit()

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

◆ IsGraph()

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

◆ IsHexDigit()

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

◆ IsIdentifier()

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

◆ IsLower()

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

◆ IsOctDigit()

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

◆ IsPrint()

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

◆ IsPunct()

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

◆ IsUnderscore()

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

◆ IsUpper()

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

◆ IsWhitespace()

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

◆ 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

◆ ToUnsigned()

template<typename CharType >
static constexpr UE_FORCEINLINE_HINT 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.

◆ 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


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