A set of predefined position encoding kinds.

Available since

3.17.0

.

Variables

@:value(cast "utf-16")@:impl@:enuminlineread onlyUTF16:PositionEncodingKind = "utf-16"

Character offsets count UTF-16 code units.

This is the default and must always be supported by servers

@:value(cast "utf-32")@:impl@:enuminlineread onlyUTF32:PositionEncodingKind = "utf-32"

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.

@:value(cast "utf-8")@:impl@:enuminlineread onlyUTF8:PositionEncodingKind = "utf-8"

Character offsets count UTF-8 code units.