View Source GenLSP.Enumerations.PositionEncodingKind (gen_lsp v0.10.0)

A set of predefined position encoding kinds.

@since 3.17.0

Link to this section Summary

Functions

Character offsets count UTF-8 code units.

Character offsets count UTF-16 code units.

Character offsets count UTF-32 code units.

Link to this section Types

Link to this section Functions

@spec utf8() :: String.t()

Character offsets count UTF-8 code units.

@spec utf16() :: String.t()

Character offsets count UTF-16 code units.

This is the default and must always be supported by servers

@spec utf32() :: String.t()

Character offsets count UTF-32 code units.

Implementation note: these are the same as Unicode code points, so this PositionEncodingKind may also be used for an encoding-agnostic representation of character offsets.