Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Text
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/TextRange.h |
| Include | #include "uLang/Common/Text/TextRange.h" |
Syntax
struct STextPosition
Remarks
Position in a text document/string expressed as zero-based row/line and zero-based column/character offset. A position is between two characters like an ‘insert’ cursor in an editor. The column is a byte offset into the UTF-8 encoded line.
Similar to a LSP Position - https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#position Also similar to UE `FIntPoint_
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32_t | _Column | ||
| uint32_t | _Row |
Functions
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE void | Invalidate () |
||
| ULANG_FORCEINLINE bool | IsInvalid () |
||
| ULANG_FORCEINLINE bool | IsValid () |
||
| ULANG_FORCEINLINE void | Reset () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE bool | operator!=
(
const STextPosition& Other |
||
| ULANG_FORCEINLINE bool | operator<
(
const STextPosition& Other |
||
| ULANG_FORCEINLINE bool | operator<=
(
const STextPosition& Other |
||
| ULANG_FORCEINLINE bool | operator==
(
const STextPosition& Other |
||
| ULANG_FORCEINLINE bool | operator>
(
const STextPosition& Other |
||
| ULANG_FORCEINLINE bool | operator>=
(
const STextPosition& Other |