FString::RemoveFromEnd

Removes the text from the end of the string if it exists.

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

bool RemoveFromEnd
(
    const TCHAR * InSuffix,
    ESearchCase::Type SearchCase
)

Remarks

Removes the text from the end of the string if it exists.

Returns

true if the suffix was removed, otherwise false.

Parameters

Parameter

Description

InSuffix

the suffix to search for at the end of the string to remove.

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