Navigation
API > API/Runtime > API/Runtime/uLangCore
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_
| Name | STextPosition |
| Type | struct |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/TextRange.h |
| Include Path | #include "uLang/Common/Text/TextRange.h" |
Syntax
struct STextPosition
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| _Column | uint32_t | uLang/Common/Text/TextRange.h | ||
| _Row | uint32_t | uLang/Common/Text/TextRange.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE void Invalidate() |
uLang/Common/Text/TextRange.h | ||
ULANG_FORCEINLINE bool IsInvalid() |
uLang/Common/Text/TextRange.h | ||
ULANG_FORCEINLINE bool IsValid() |
uLang/Common/Text/TextRange.h | ||
ULANG_FORCEINLINE void Reset() |
uLang/Common/Text/TextRange.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE bool operator!=
(
const STextPosition& Other |
uLang/Common/Text/TextRange.h | ||
ULANG_FORCEINLINE bool operator==
(
const STextPosition& Other |
uLang/Common/Text/TextRange.h | ||
ULANG_FORCEINLINE bool operator>
(
const STextPosition& Other |
uLang/Common/Text/TextRange.h | ||
ULANG_FORCEINLINE bool operator>=
(
const STextPosition& Other |
uLang/Common/Text/TextRange.h |