FString::Contains

Returns whether this string contains the specified substring.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/UnrealString.h"

Syntax

bool Contains
(
    const TCHAR * SubStr,
    ESearchCase::Type SearchCase,
    ESearchDir::Type SearchDir
) const

Remarks

Returns whether this string contains the specified substring.

Returns

Returns whether the string contains the substring

Parameters

Parameter

Description

SubStr

Find to search for

SearchCase

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

SearchDir

Indicates whether the search starts at the beginning or at the end ( defaults to ESearchDir::FromStart )

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