From d9f9673d90371ead668863221c1202de49ab1782 Mon Sep 17 00:00:00 2001 From: ppedrot Date: Fri, 14 Dec 2012 11:05:35 +0000 Subject: Moved Stringset and Stringmap to String namespace. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16068 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/cString.ml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/cString.ml') diff --git a/lib/cString.ml b/lib/cString.ml index fd375c5c34..b34b219570 100644 --- a/lib/cString.ml +++ b/lib/cString.ml @@ -58,6 +58,8 @@ sig val ordinal : int -> string val split : char -> string -> string list val is_sub : string -> string -> int -> bool + module Set : Set.S with type elt = t + module Map : Map.S with type key = t end include String @@ -167,3 +169,12 @@ let split c s = | Not_found -> [String.sub s n (len-n)] in if Int.equal len 0 then [] else split 0 + +module Self = +struct + type t = string + let compare = compare +end + +module Set = Set.Make(Self) +module Map = Map.Make(Self) -- cgit v1.2.3