Navigation
API > API/Runtime > API/Runtime/Core
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
| Name | FWildcardString |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/WildcardString.h |
| Include Path | #include "Misc/WildcardString.h" |
Syntax
class FWildcardString : public FString
Inheritance Hierarchy
- FString → FWildcardString
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor. | Misc/WildcardString.h | ||
FWildcardString
(
const FString& Pattern |
Creates and initializes a new instance with the specified pattern. | Misc/WildcardString.h | |
FWildcardString
(
const TCHAR* Pattern |
Creates and initializes a new instance with the specified pattern. | Misc/WildcardString.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| EndOfString | const TCHAR | Holds the string terminator character. | Misc/WildcardString.h |
| ExactWildcard | const TCHAR | Holds the wild card that matches exactly one character (default is '?'). | Misc/WildcardString.h |
| SequenceWildcard | const TCHAR | Holds the wild card that matches a sequence of characters (default is '*'). | Misc/WildcardString.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ContainsWildcards () |
Checks whether this string contains wild card characters. | Misc/WildcardString.h | |
bool IsMatch
(
const TCHAR* Input |
Matches the given input string to this wild card pattern. | Misc/WildcardString.h | |
| Matches the given input string to this wild card pattern. | Misc/WildcardString.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool ContainsWildcards
(
const TCHAR* Pattern |
Checks whether the specified pattern contains wild card characters. | Misc/WildcardString.h | |
static bool IsMatch
(
const TCHAR* Pattern, |
Non-recursive wild card string matching algorithm. | Misc/WildcardString.h | |
static bool IsMatchSubstring
(
const TCHAR* Pattern, |
As IsMatch, except can accept the end of the input string in order to facilitate FStringView usage. | Misc/WildcardString.h |