FString::ReplaceCharWithEscapedChar

Replaces certain characters with the "escaped" version of that character (i.e. replaces "\n" with "\\n").

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/UnrealString.h"

Syntax

FString ReplaceCharWithEscapedChar
(
    const TArray< TCHAR > * Chars
)

Remarks

Returns

a string with all control characters replaced by the escaped version.

Parameters

Parameter

Description

Chars

by default, replaces all supported characters; this parameter allows you to limit the replacement to a subset.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss