FString::Compare

Lexicographically tests how this string compares to the Other given string

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/UnrealString.h"

Syntax

int32 Compare
(
    const FString & Other,
    ESearchCase::Type SearchCase
) const

Remarks

Lexicographically tests how this string compares to the Other given string

Returns

0 if equal, negative if less than, positive if greater than

Parameters

Parameter

Description

Other

The string test against

SearchCase

Whether or not the comparison should ignore case

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