Module Flow_sedlexing.Utf8

val from_string : string -> lexbuf
val sub_lexeme : lexbuf -> int -> int -> string
val lexeme : lexbuf -> string
val lexeme_to_buffer : lexbuf -> Buffer.t -> unit

This API avoids another allocation

val lexeme_to_buffer2 : lexbuf -> Buffer.t -> Buffer.t -> unit