UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Utf8String.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5// Include UnrealString.h.inl's includes before defining the macros, in case the macros 'poison' other headers or there are re-entrant includes.
6#include "Containers/UnrealStringIncludes.h.inl" // IWYU pragma: export
7
8// Note that FUtf8String's Printf formatting type is not UTF8CHAR - even though the formatting string must be ANSI,
9// the string still supports UTF8CHAR strings as arguments, e.g. FUtf8String::Printf("Name: %s", Utf8Name)
10#define UE_STRING_CLASS FUtf8String
11#define UE_STRING_CHARTYPE UTF8CHAR
12#define UE_STRING_CHARTYPE_IS_TCHAR 0
13#define UE_STRING_PRINTF_FMT_CHARTYPE ANSICHAR
14#define UE_STRING_PRINTF_FMT_CHARTYPE2 UTF8CHAR
15#define UE_STRING_DEPRECATED(Version, Message) UE_DEPRECATED(Version, Message)
16 #include "Containers/UnrealString.h.inl" // IWYU pragma: export
17#undef UE_STRING_DEPRECATED
18#undef UE_STRING_PRINTF_FMT_CHARTYPE2
19#undef UE_STRING_PRINTF_FMT_CHARTYPE
20#undef UE_STRING_CHARTYPE_IS_TCHAR
21#undef UE_STRING_CHARTYPE
22#undef UE_STRING_CLASS