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

#include <CharRangeList.h>

Public Member Functions

bool InitializeFromString (const FString &InDefinitionString, int32 InFromIndex, int32 *OutLastIndex)
 
FString ToString () const
 

Public Attributes

uint16 First = 0
 
uint16 Last = 0
 

Detailed Description

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.

Member Function Documentation

◆ InitializeFromString()

bool FCharRange::InitializeFromString ( const FString &  InDefinitionString,
int32  InFromIndex,
int32 OutLastIndex 
)

Initializes this range from the given substring. See ToString for an overview on the required format. OutLastIndex will contain the index of the character following the parsed range.

◆ ToString()

FString FCharRange::ToString ( ) const

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.

Member Data Documentation

◆ First

uint16 FCharRange::First = 0

Unicode code point of the first character in the range (inclusive). Only characters within the Basic Multilingual Plane are supported. Note: The code point must be entered in decimal, not hexadecimal.

◆ Last

uint16 FCharRange::Last = 0

Unicode code point of the last character in the range (inclusive). Only characters within the Basic Multilingual Plane are supported. Note: The code point must be entered in decimal, not hexadecimal.


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