StringCast

StringCast example usage:

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/StringConv.h

Include

#include "Containers/StringConv.h"

Syntax

template<typename To, typename From>
auto StringCast
(
    const From * Str
)

Remarks

StringCast example usage:

void Func(const FString& Str) { auto Src = StringCast(); const ANSICHAR* Ptr = Src.Get(); // Ptr is a pointer to an ANSICHAR representing the potentially-converted string data. } Creates an object which acts as a source of a given string type. See example above.

Parameters

Parameter

Description

Str

The null-terminated source string to convert.