package odoc

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file odoc_compat.ml

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
(**
   Compatibility module reexporting ~equivalent functions based on the current
   OCaml version
 *)
module String =
struct
  include String

#if OCAML_MAJOR = 4 && OCAML_MINOR = 02
  let lowercase_ascii = lowercase
  let capitalize_ascii = capitalize
  let uncapitalize_ascii = uncapitalize
#else
  let lowercase_ascii = lowercase_ascii
  let capitalize_ascii = capitalize_ascii
  let uncapitalize_ascii = uncapitalize_ascii
#endif

end

module Char =
struct
  include Char

#if OCAML_MAJOR = 4 && OCAML_MINOR = 02
  let lowercase_ascii = lowercase
#else
  let lowercase_ascii = lowercase_ascii
#endif

end
OCaml

Innovation. Community. Security.