TStringView::Compare

Compare this view with a null-terminated string.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/StringView.h"

Syntax

template<typename OtherCharType>
int32 Compare
(
    const OtherCharType * Other,
    ESearchCase::Type SearchCase
) const

Remarks

Compare this view with a null-terminated string.

Returns

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

Parameters

Parameter

Description

Other

A null-terminated string that is comparable with the character type of this view.

SearchCase

Whether the comparison should ignore case.