/usr/lib/ocaml/pxp-engine/pxp_lexing.mli is in libpxp-ocaml-dev 1.2.2-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | (* $Id: pxp_lexing.mli 662 2004-05-25 20:57:28Z gerd $
* ----------------------------------------------------------------------
*
*)
(* The following types and functions are the same as in the module
* Lexing of the stdlib. For some versions of O'Caml, some of the functions
* have a more efficient implementation.
*)
type lexbuf = Lexing.lexbuf
val from_channel : in_channel -> lexbuf
val from_string : string -> lexbuf
val from_function : (string -> int -> int) -> lexbuf
val lexeme : lexbuf -> string
val lexeme_char : lexbuf -> int -> char
(* val lexeme_start : lexbuf -> int *) (* Removed because of wlex problems *)
(* val lexeme_end : lexbuf -> int *) (* Removed because of wlex problems *)
(* Extensions: *)
val lexeme_len : lexbuf -> int
(* = String.length(lexeme lexbuf) *)
val from_string_inplace : string -> Lexing.lexbuf
(* Similar to Lexing.from_string, but does not copy the passed string
* intially
*)
val from_another_string_inplace : Lexing.lexbuf -> string -> unit
(* lexbuf: a buffer from a previous Lexing.from_string
* (or from_string_inplace).
* Modifies lexbuf such that the lexer starts again with the passed string
*)
val sub_lexeme : Lexing.lexbuf -> int -> int -> string
(* Same as String.sub (Lexing.lexeme lexbuf) k l, but avoids one string
* allocation
*)
|