File: mstring.mli

package info (click to toggle)
camlimages 2.20-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,020 kB
  • ctags: 2,432
  • sloc: ml: 12,244; ansic: 2,402; makefile: 1,135; sh: 193
file content (38 lines) | stat: -rw-r--r-- 1,690 bytes parent folder | download | duplicates (4)
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
(***********************************************************************)
(*                                                                     *)
(*                           Objective Caml                            *)
(*                                                                     *)
(*            Franois Pessaux, projet Cristal, INRIA Rocquencourt     *)
(*            Pierre Weis, projet Cristal, INRIA Rocquencourt          *)
(*            Jun Furuse, projet Cristal, INRIA Rocquencourt           *)
(*                                                                     *)
(*  Copyright 1999-2004,                                               *)
(*  Institut National de Recherche en Informatique et en Automatique.  *)
(*  Distributed only by permission.                                    *)
(*                                                                     *)
(***********************************************************************)

(* $Id: mstring.mli,v 1.5 2004/09/24 14:27:26 weis Exp $*)

(** String utilities *)
val split_str : (char -> bool) -> string -> string list;;
val split_str_quoted : (char -> bool) -> string -> string list;;
val get_suffix : string -> string;;

val hex_to_dec : char -> int;;
val dec_to_hex : int -> char;;

val hex_to_string : string -> string;;

val gensym : string -> string;;

val rem_trailing_sp : string -> string;;

val catenate_sep : string -> string list -> string;;

val norm_crlf : bool -> string -> int -> int -> string * bool;;
    (** [norm_crlf last_was_cr buf offs len] returns
       buf with CRLF/CR/LF converted to LF, and a flag indicating
       whether last char was CR. *)

val hexchar : char -> string;;