UKismetStringLibrary::FindSubstring

Finds the starting index of a substring in the a specified string

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetStringLibrary.h

Include

#include "Kismet/KismetStringLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetStringLibrary.cpp

Syntax

static int32 FindSubstring
(
    const FString & SearchIn,
    const FString & Substring,
    bool bUseCase,
    bool bSearchFromEnd,
    int32 StartPosition
)

Remarks

Finds the starting index of a substring in the a specified string

Returns

The index (starting from 0 if bSearchFromEnd is false) of the first occurence of the substring

Parameters

Parameter

Description

SearchIn

The string to search within

Substring

The string to look for in the SearchIn string

bUseCase

Whether or not to be case-sensitive

bSearchFromEnd

Whether or not to start the search from the end of the string instead of the beginning

StartPosition

The position to start the search from

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