TStringView::Compare

Compare this view lexicographically with another view.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/StringView.h"

Source

/Engine/Source/Runtime/Core/Public/Containers/StringView.inl

Syntax

template<typename OtherType, typename TEnableIf< StringViewPrivate::TIsConvertibleToStringView< OtherType >::Value >::Type *>
int32 Compare
(
    OtherType && Other,
    ESearchCase::Type SearchCase
) const

Remarks

Compare this view lexicographically with another view.

Returns

0 is equal, negative if this view is less, positive if this view is greater.

Parameters

Parameter

Description

SearchCase

Whether 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