FString::RemoveFromStart

Removes the text from the start 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 RemoveFromStart
(
    const FString & InPrefix,
    ESearchCase::Type SearchCase
)

Remarks

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

Returns

true if the prefix was removed, otherwise false.

Parameters

Parameter

Description

InPrefix

the prefix to search for at the start 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