TStringView::Find

Search the view for the first occurrence of a search 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

int32 Find
(
    ViewType Search,
    int32 StartPosition
) const

Remarks

Search the view for the first occurrence of a search string.

Returns

The index of the first occurrence of the search string if found, otherwise INDEX_NONE.

Parameters

Parameter

Description

Search

The string to search for. Comparison is lexicographic.

StartPosition

The character position to start searching from.