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

#include <UnrealString.h>

Public Member Functions

 FTextRange ()
 
 FTextRange (int32 InBeginIndex, int32 InEndIndex)
 
bool UEOpEquals (const FTextRange &Other) const
 
int32 Len () const
 
bool IsEmpty () const
 
void Offset (int32 Amount)
 
bool Contains (int32 Index) const
 
bool InclusiveContains (int32 Index) const
 
FTextRange Intersect (const FTextRange &Other) const
 

Static Public Member Functions

static CORE_API void CalculateLineRangesFromString (const FString &Input, TArray< FTextRange > &LineRanges)
 

Public Attributes

int32 BeginIndex
 
int32 EndIndex
 

Friends

uint32 GetTypeHash (const FTextRange &Key)
 

Constructor & Destructor Documentation

◆ FTextRange() [1/2]

FTextRange::FTextRange ( )
inline

◆ FTextRange() [2/2]

FTextRange::FTextRange ( int32  InBeginIndex,
int32  InEndIndex 
)
inline

Member Function Documentation

◆ CalculateLineRangesFromString()

void FTextRange::CalculateLineRangesFromString ( const FString &  Input,
TArray< FTextRange > &  LineRanges 
)
static

Produce an array of line ranges from the given text, breaking at any new-line characters

◆ Contains()

bool FTextRange::Contains ( int32  Index) const
inline

◆ InclusiveContains()

bool FTextRange::InclusiveContains ( int32  Index) const
inline

◆ Intersect()

FTextRange FTextRange::Intersect ( const FTextRange Other) const
inline

◆ IsEmpty()

bool FTextRange::IsEmpty ( ) const
inline

◆ Len()

int32 FTextRange::Len ( ) const
inline

◆ Offset()

void FTextRange::Offset ( int32  Amount)
inline

◆ UEOpEquals()

bool FTextRange::UEOpEquals ( const FTextRange Other) const
inline

Friends And Related Symbol Documentation

◆ GetTypeHash

uint32 GetTypeHash ( const FTextRange Key)
friend

Member Data Documentation

◆ BeginIndex

int32 FTextRange::BeginIndex

◆ EndIndex

int32 FTextRange::EndIndex

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