TStringView::FindChar

Search the view for the first occurrence of a character.

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

bool FindChar
(
    CharType Search,
    int32 & OutIndex
) const

Remarks

Search the view for the first occurrence of a character.

Returns

True if the character was found in the view, otherwise false.

Parameters

Parameter

Description

Search

The character to search for. Comparison is lexicographic.

OutIndex

[out] The position at which the character was found, or INDEX_NONE if not found.