-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprefix.mli
27 lines (21 loc) · 851 Bytes
/
prefix.mli
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
(**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(*****************************************************************************)
(* The prefix is used to guarantee that we are not mixing different kind of
* keys in the heap.
* It just creates a new prefix every time its called.
*)
(*****************************************************************************)
type t (* Better make the type abstract *)
val make: unit -> t
(* Given a prefix and a key make me a prefixed key *)
val make_key: t -> string -> string
(* Removes the prefix from a key *)
val remove: t -> string -> string