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