jon.recoil.org

Module Sedlexing.Latin1Source

Sourceval from_gen : char Gen.t -> Sedlexing.lexbuf

Create a lexbuf from a Latin1 encoded stream (ie a stream of Unicode code points in the range 0..255)

Create a lexbuf from a Latin1 encoded input channel. The client is responsible for closing the channel.

Sourceval from_string : string -> Sedlexing.lexbuf

Create a lexbuf from a Latin1 encoded string.

Sourceval lexeme : Sedlexing.lexbuf -> string

As Sedlexing.lexeme with a result encoded in Latin1. This function throws an exception InvalidCodepoint if it is not possible to encode the result in Latin1.

Sourceval sub_lexeme : Sedlexing.lexbuf -> int -> int -> string

As Sedlexing.sub_lexeme with a result encoded in Latin1. This function throws an exception InvalidCodepoint if it is not possible to encode the result in Latin1.

Sourceval lexeme_char : Sedlexing.lexbuf -> int -> char

As Sedlexing.lexeme_char with a result encoded in Latin1. This function throws an exception InvalidCodepoint if it is not possible to encode the result in Latin1.