Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (31 sloc) 1.17 KB
Copyright © 2011 MLstate
This file is part of OPA.
OPA is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
OPA is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.
You should have received a copy of the GNU Affero General Public License
along with OPA. If not, see <>.
module String = BaseString
module Format = BaseFormat
type t = string
<!> how to share abstract value between modules in ocaml ?
beware : keep sync with implementation in bslKeyMap
type t = string
let compare =
external to_string : string -> t = "%identity"
let pp = Format.pp_print_string
external of_string : t -> string = "%identity"
let normalize name =
let name = String.lowercase (String.trim name) in
String.replace name "." "_"
let normalize_string = normalize
let equal = String.equal
let hash = String.hash
Jump to Line
Something went wrong with that request. Please try again.