UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCharRangeList Struct Reference

#include <CharRangeList.h>

Public Member Functions

SLATE_API bool InitializeFromString (const FString &InDefinitionString)
 
SLATE_API FString ToString () const
 
SLATE_API void Empty ()
 
SLATE_API bool IsEmpty () const
 
SLATE_API bool IsCharIncluded (TCHAR InChar) const
 
SLATE_API bool AreAllCharsIncluded (const FString &InString) const
 
SLATE_API TSet< TCHARFindCharsNotIncluded (const FString &InString) const
 

Public Attributes

TArray< FCharRangeRanges
 

Detailed Description

Represents a list of character ranges.

Member Function Documentation

◆ AreAllCharsIncluded()

bool FCharRangeList::AreAllCharsIncluded ( const FString &  InString) const

Returns true if all the characters in the given string are included in any of the char ranges, or false otherwise.

◆ Empty()

void FCharRangeList::Empty ( )

Empties this instance.

◆ FindCharsNotIncluded()

TSet< TCHAR > FCharRangeList::FindCharsNotIncluded ( const FString &  InString) const

Finds all the characters in the given string that are not included in any of the char ranges.

◆ InitializeFromString()

bool FCharRangeList::InitializeFromString ( const FString &  InDefinitionString)

Initializes this instance with the character ranges represented by the passed definition string. A definition string contains characters and ranges of characters, one after another with no special separators between them. Characters - and \ must be escaped like this: - and \

Examples: "aT._" <– Letters 'a' and 'T', dot and underscore. "a-zT._" <– All letters from 'a' to 'z', letter 'T', dot and underscore. "a-zA-Z0-9._" <– All lowercase and uppercase letters, all digits, dot and underscore. "a-zA-Z0-9\-\\._" <– All lowercase and uppercase letters, all digits, minus sign, backslash, dot and underscore.

◆ IsCharIncluded()

bool FCharRangeList::IsCharIncluded ( TCHAR  InChar) const

Returns true if the given char is included in any of the char ranges, or false otherwise.

◆ IsEmpty()

bool FCharRangeList::IsEmpty ( ) const

Returns true if this instance does not contain any characters, or false otherwise.

◆ ToString()

FString FCharRangeList::ToString ( ) const

Returns a definition string that represents all the character ranges in this instance.

Member Data Documentation

◆ Ranges

TArray<FCharRange> FCharRangeList::Ranges

The documentation for this struct was generated from the following files: