Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TStringView
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Compare
(
const OtherRangeType& Other, |
Compare this view with a character range. | Containers/StringView.h | |
int32 Compare
(
TStringView< OtherCharType > Other, |
Compare this view with a string view. | Containers/StringView.h | |
int32 Compare
(
const OtherCharType* Other, |
Compare this view with a null-terminated string. | Containers/StringView.h |
Compare(const OtherRangeType &, ESearchCase::Type)
Description
Compare this view with a character range.
| Name | Compare |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StringView.h |
| Include Path | #include "Containers/StringView.h" |
template<UE::CStringViewable OtherRangeType>
int32 Compare
(
const OtherRangeType & Other,
ESearchCase::Type SearchCase
) const
0 is equal, negative if this view is less, positive if this view is greater.
Parameters
| Name | Remarks |
|---|---|
| Other | A character range that is comparable with the character type of this view. |
| SearchCase | Whether the comparison should ignore case. |
Compare(TStringView< OtherCharType >, ESearchCase::Type)
Description
Compare this view with a string view.
| Name | Compare |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StringView.h |
| Include Path | #include "Containers/StringView.h" |
template<UE::CCharType OtherCharType>
int32 Compare
(
TStringView < OtherCharType > Other,
ESearchCase::Type SearchCase
) const
0 is equal, negative if this view is less, positive if this view is greater.
Parameters
| Name | Remarks |
|---|---|
| Other | A string view that is comparable with the character type of this view. |
| SearchCase | Whether the comparison should ignore case. |
Compare(const OtherCharType *, ESearchCase::Type)
Description
Compare this view with a null-terminated string.
| Name | Compare |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StringView.h |
| Include Path | #include "Containers/StringView.h" |
template<UE::CCharType OtherCharType>
int32 Compare
(
const OtherCharType * Other,
ESearchCase::Type SearchCase
) const
0 is equal, negative if this view is less, positive if this view is greater.
Parameters
| Name | Remarks |
|---|---|
| Other | A null-terminated string that is comparable with the character type of this view. |
| SearchCase | Whether the comparison should ignore case. |