package sedlex

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val from_gen : char Gen.t -> lexbuf

Create a lexbuf from a UTF-8 encoded stream.

val from_stream : char Stream.t -> lexbuf

Create a lexbuf from a UTF-8 encoded stream.

  • deprecated Use [Sedlexing.Utf8.from_gen] instead.
val from_channel : Pervasives.in_channel -> lexbuf

Create a lexbuf from a UTF-8 encoded input channel.

val from_string : string -> lexbuf

Create a lexbuf from a UTF-8 encoded string.

val lexeme : lexbuf -> string

As Sedlexing.lexeme with a result encoded in UTF-8.

val sub_lexeme : lexbuf -> int -> int -> string

As Sedlexing.sub_lexeme with a result encoded in UTF-8.

OCaml

Innovation. Community. Security.