]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nUri.ml
...
[helm.git] / helm / software / components / ng_kernel / nUri.ml
index 16fd7e489f79efd070019f7f75cfbc4679dbb770..5924036845b7a74db28f8fdd8c5b5762498fdee2 100644 (file)
@@ -15,6 +15,11 @@ type uri = int * string (* shareno, URI *)
 
 let string_of_uri (_, uri) = uri;;
 
+let name_of_uri (_, uri) = 
+  let name = Filename.basename uri in
+  Filename.chop_extension name
+;;
+
 module OrderedStrings =
  struct
   type t = string
@@ -48,7 +53,3 @@ module HT = struct
 end;;
 
 module UriHash = Hashtbl.Make(HT);;
-
-let ouri_of_nuri u = UriManager.uri_of_string (string_of_uri u);;
-let nuri_of_ouri o = uri_of_string (UriManager.string_of_uri o);;
-