]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/ng_kernel/nUri.ml
- nUri : added Sets of uris for use in "probe"
[helm.git] / matita / components / ng_kernel / nUri.ml
index 5d810729404c5ea739e735e877edfe9bf6dfdf8d..ba87b2e2876709f0cc188c42edbe491f439d2334 100644 (file)
@@ -20,6 +20,10 @@ let name_of_uri (_, uri) =
   Filename.chop_extension name
 ;;
 
+let baseuri_of_uri (_,uri) =
+ Filename.dirname uri
+;;
+
 module OrderedStrings =
  struct
   type t = string
@@ -44,13 +48,15 @@ fun s ->
 
 let eq = (==);;
 let compare (n1,_) (n2,_) = n2 - n1;;
+let hash (n,_) = n;;
 
 module HT = struct
         type t = uri
         let equal = eq
         let compare = compare
-        let hash (n,_) = n;;
+        let hash = hash;;
 end;;
 
 module UriHash = Hashtbl.Make(HT);;
 module UriMap = Map.Make(HT);;
+module UriSet = Set.Make(HT);;