TStringView::FindLastChar

Search the view for the last occurrence of a character.

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/Private/Containers/StringView.cpp

Syntax

bool FindLastChar
(
    CharType InChar,
    SizeType & OutIndex
) const

Remarks

Search the view for the last occurrence of a character.

Returns

Whether the character was found in the view.

Parameters

Parameter

Description

InChar

The character to search for. Comparison is lexicographic.

OutIndex

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss