FString::Replace

Replace all occurrences of a substring in this string

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/UnrealString.h"

Source

/Engine/Source/Runtime/Core/Private/Containers/String.cpp

Syntax

FString Replace
(
    const TCHAR * From,
    const TCHAR * To,
    ESearchCase::Type SearchCase
)

Remarks

Replace all occurrences of a substring in this string

Returns

a copy of this string with the replacement made

Parameters

Parameter

Description

From

substring to replace

To

substring to replace From with

SearchCase

Indicates whether the search is case sensitive or not ( defaults to ESearchCase::IgnoreCase )

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