![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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< TCHAR > | FindCharsNotIncluded (const FString &InString) const |
Public Attributes | |
| TArray< FCharRange > | Ranges |
Represents a list of character ranges.
| 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.
| void FCharRangeList::Empty | ( | ) |
Empties this instance.
| 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.
| 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.
Returns true if the given char is included in any of the char ranges, or false otherwise.
| bool FCharRangeList::IsEmpty | ( | ) | const |
Returns true if this instance does not contain any characters, or false otherwise.
| FString FCharRangeList::ToString | ( | ) | const |
Returns a definition string that represents all the character ranges in this instance.
| TArray<FCharRange> FCharRangeList::Ranges |