FString::Compare

Lexicographically tests how this string compares to the Other given string

Choose your operating system:

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