FWildcardString

Implements a string with wild card pattern matching abilities.

Windows
MacOS
Linux

Inheritance Hierarchy

FString

FWildcardString

Syntax

class FWildcardString : public FString

Remarks

Implements a string with wild card pattern matching abilities.

Constructors

Name Description

Public function

FWildcardString()

Default constructor.

Public function

FWildcardString

(
    const FString& Pattern
)

Creates and initializes a new instance with the specified pattern.

Public function

FWildcardString

(
    const TCHAR* Pattern
)

Creates and initializes a new instance with the specified pattern.

Functions

Name Description

Public function Const

bool

 

ContainsWildcards()

Checks whether this string contains wild card characters.

Public function Static

bool

 

ContainsWildcards

(
    const TCHAR* Pattern
)

Checks whether the specified pattern contains wild card characters.

Public function Const

bool

 

IsMatch

(
    const TCHAR* Input
)

Matches the given input string to this wild card pattern.

Public function Const

bool

 

IsMatch

(
    const FString& Input
)

Matches the given input string to this wild card pattern.

Public function Static

bool

 

IsMatch

(
    const TCHAR* Pattern,
    const TCHAR* Input
)

Non-recursive wild card string matching algorithm.

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 '*').

References

Module

Core

Header

Runtime/Core/Public/Misc/WildcardString.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback