UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IsCharType.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
10template<typename T> struct TIsCharType { enum { Value = false, value = false }; };
11template<> struct TIsCharType<ANSICHAR> { enum { Value = true, value = true }; };
12template<> struct TIsCharType<UCS2CHAR> { enum { Value = true, value = true }; };
13#if !PLATFORM_UCS2CHAR_IS_UTF16CHAR
14template<> struct TIsCharType<UTF16CHAR> { enum { Value = true, value = true }; };
15#endif
16template<> struct TIsCharType<WIDECHAR> { enum { Value = true, value = true }; };
17template<> struct TIsCharType<UTF8CHAR> { enum { Value = true, value = true }; };
18template<> struct TIsCharType<UTF32CHAR> { enum { Value = true, value = true }; };
19#if PLATFORM_TCHAR_IS_CHAR16
20template<> struct TIsCharType<wchar_t> { enum { Value = true, value = true }; };
21#endif
22
23template <typename T> struct TIsCharType<const T> : TIsCharType<T> { };
24template <typename T> struct TIsCharType< volatile T> : TIsCharType<T> { };
25template <typename T> struct TIsCharType<const volatile T> : TIsCharType<T> { };
26
27template <typename T>
28constexpr inline bool TIsCharType_V = TIsCharType<T>::Value;
FPlatformTypes::CHAR16 UCS2CHAR
A 16-bit character containing a UCS2 (Unicode, 16-bit, fixed-width) code unit, used for compatibility...
Definition Platform.h:1139
FPlatformTypes::UTF32CHAR UTF32CHAR
A 32-bit character containing a UTF32 (Unicode, 32-bit, fixed-width) code unit.
Definition Platform.h:1143
FPlatformTypes::WIDECHAR WIDECHAR
A wide character. Normally a signed type.
Definition Platform.h:1133
FPlatformTypes::UTF8CHAR UTF8CHAR
An 8-bit character containing a UTF8 (Unicode, 8-bit, variable-width) code unit.
Definition Platform.h:1137
FPlatformTypes::CHAR16 UTF16CHAR
A 16-bit character containing a UTF16 (Unicode, 16-bit, variable-width) code unit.
Definition Platform.h:1141
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
constexpr bool TIsCharType_V
Definition IsCharType.h:28
Definition IsCharType.h:10
@ value
Definition IsCharType.h:10
@ Value
Definition IsCharType.h:10