syside.ide.lsp.PositionEncodingKind

class PositionEncodingKind(*args, **kwds)

Bases: enum.Enum

LSP position encoding kind. Note that SysIDE uses Utf-8 internally so it will incur no performance penalty. Other encodings will require lazy conversions, however allocations will be avoided whenever possible.

For Python strings, use Utf32 encoding as that is what is used for string indexing and slicing.

See LSP specification for more details.

Initialization

Utf8 = 0
Utf16 = 1
Utf32 = 2
classmethod __signature__()
__new__(value)
__repr__()
__str__()
__dir__()

Returns public methods and other interesting attributes.

__format__(format_spec)
__hash__()
__reduce_ex__(proto)
__deepcopy__(memo)
__copy__()
name()

The name of the Enum member.

value()

The value of the Enum member.