UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Crc.h File Reference
#include "CoreTypes.h"
#include "HAL/PlatformString.h"
#include "Misc/AssertionMacros.h"
#include "Misc/CString.h"
#include "Misc/Char.h"
#include "Templates/UnrealTypeTraits.h"
#include "Traits/IsCharType.h"

Go to the source code of this file.

Classes

struct  FCrc
 
struct  TStringPointerSetKeyFuncs_DEPRECATED< InKeyType, bInAllowDuplicateKeys >
 
struct  TStringPointerMapKeyFuncs_DEPRECATED< InKeyType, InValueType, bInAllowDuplicateKeys >
 

Functions

UE_FORCEINLINE_HINT const TCHARToCStr (const TCHAR *Ptr)
 

Function Documentation

◆ ToCStr()

UE_FORCEINLINE_HINT const TCHAR * ToCStr ( const TCHAR Ptr)

Gets a non-owning TCHAR pointer from a string type.

Can be used generically to get a const TCHAR*, when it is not known if the argument is a TCHAR* or an FString:

template <typename T> void LogValue(const T& Val) { Logf(TEXT("Value: %s"), ToCStr(LexToString(Val))); }