![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <WildcardString.h>
Inheritance diagram for FWildcardString:Public Member Functions | |
| FWildcardString () | |
| FWildcardString (const FString &Pattern) | |
| FWildcardString (const TCHAR *Pattern) | |
| bool | ContainsWildcards () const |
| bool | IsMatch (const TCHAR *Input) const |
| bool | IsMatch (const FString &Input) const |
Static Public Member Functions | |
| static CORE_API bool | ContainsWildcards (const TCHAR *Pattern) |
| static CORE_API bool | IsMatch (const TCHAR *Pattern, const TCHAR *Input) |
| static CORE_API bool | IsMatchSubstring (const TCHAR *Pattern, const TCHAR *Input, const TCHAR *InputEnd, ESearchCase::Type SearchCase=ESearchCase::CaseSensitive) |
Static Protected Attributes | |
| static const TCHAR | EndOfString = TCHAR('\0') |
| static const TCHAR | ExactWildcard = TCHAR('?') |
| static const TCHAR | SequenceWildcard = TCHAR('*') |
Implements a string with wild card pattern matching abilities.
The FWildcardString is meant to hold the pattern you are matching against. For basic use, just call the static functions IsMatch() or IsMatchSubstring if you have FStringView
|
inline |
Default constructor.
|
inline |
Creates and initializes a new instance with the specified pattern.
| Pattern | The pattern string. |
|
inline |
Creates and initializes a new instance with the specified pattern.
| Pattern | The pattern string. |
|
inline |
Checks whether this string contains wild card characters.
Checks whether the specified pattern contains wild card characters.
| Pattern | The string to check. |
|
inline |
Matches the given input string to this wild card pattern.
| Input | The string to match. |
Matches the given input string to this wild card pattern.
| Input | The string to match. |
Non-recursive wild card string matching algorithm.
| Pattern | The pattern to match. |
| Input | The input string to check. |
|
static |
As IsMatch, except can accept the end of the input string in order to facilitate FStringView usage.
if ESearchCase::IgnoreCase is used, the pattern and input are ToLower()d before comparison (note - does not apply locale and just uses c runtime style tolower)
Holds the string terminator character.
Holds the wild card that matches exactly one character (default is '?').
Holds the wild card that matches a sequence of characters (default is '*').