FTextRange

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/UnrealString.h

Include

#include "Containers/UnrealString.h"

Syntax

struct FTextRange

Variables

Name Description

Public variable

int32

 

BeginIndex

Public variable

int32

 

EndIndex

Constructors

Name Description

Public function

FTextRange()

Public function

FTextRange

(
    int32 InBeginIndex,
    int32 InEndIndex
)

Functions

Name Description

Public function Static

void

 

CalculateLineRangesFromString

(
    const FString& Input,
    TArray< FTextRange >& LineRanges
)

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

Public function Const

bool

 

Contains

(
    int32 Index
)

Public function Const

bool

 

InclusiveContains

(
    int32 Index
)

Public function Const

FTextRange

 

Intersect

(
    const FTextRange& Other
)

Public function Const

bool

 

IsEmpty()

Public function Const

int32

 

Len()

Public function

void

 

Offset

(
    int32 Amount
)

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FTextRange& Other
)

Public function Const

bool

 

operator==

(
    const FTextRange& Other
)