Algo::FindSortedStringCaseInsensitive

Finds a string in an array of sorted strings, by case-insensitive search, by using binary subdivision of the array.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Algo/FindSortedStringCaseInsensitive.h

Include

#include "Algo/FindSortedStringCaseInsensitive.h"

Syntax

namespace Algo
{
    template<int32 ArraySize>
    int32 Algo::FindSortedStringCaseInsensitive
    (
        const TCHAR * Str,
        const TCHAR *const (&) SortedArray
    )
}

Remarks

Finds a string in an array of sorted strings, by case-insensitive search, by using binary subdivision of the array.

Returns

The index of the found string in the array, or -1 if the string was not found.

Parameters

Parameter

Description

Str

The string to look for.

SortedArray

The array of strings to search. The strings must be sorted lexicographically, case-insensitively.

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