Navigation
API > API/Runtime > API/Runtime/Slate
Represents a range of characters, specified by the Unicode code point of the first and last characters in the range, both included. If you need a single-character range, simply use the same character for both the first and last characters.
| Name | FCharRange |
| Type | struct |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Text/CharRangeList.h |
| Include Path | #include "Framework/Text/CharRangeList.h" |
Syntax
USTRUCT ()
struct FCharRange
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| First | uint16 | Unicode code point of the first character in the range (inclusive). | Framework/Text/CharRangeList.h |
|
| Last | uint16 | Unicode code point of the last character in the range (inclusive). | Framework/Text/CharRangeList.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool InitializeFromString
(
const FString& InDefinitionString, |
Initializes this range from the given substring. | Framework/Text/CharRangeList.h | |
FString ToString() |
Returns a string that represents this range, as "a-z" if the range contains multiple characters or simply "p" if it contains a single character. | Framework/Text/CharRangeList.h |