ToCStr

Syntax

const TCHAR * ToCStr
(
    const TCHAR * Ptr
)

Remarks

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 =""> void LogValue(const T& Val) { Logf(TEXT("Value: %s"), ToCStr(LexToString(Val))); }

References

Module

Core

Header

Runtime/Core/Public/Containers/UnrealString.h