package coq-lsp

  1. Overview
  2. Docs
type char = int
type index = int
val char_of_index : line:string -> byte:index -> char option

Byte index to UTF-8 character position

val index_of_char : line:string -> char:char -> index option

UTF-8 Char to byte index position

val length : string -> char

Lenght in utf-8 chars

OCaml

Innovation. Community. Security.