]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nUri.ml
projections redex (proj (mk_foo ...)) where mk_foo
[helm.git] / helm / software / components / ng_kernel / nUri.ml
index 7e8cf40df876c5b4a084e35898a7a448c0c542aa..5d810729404c5ea739e735e877edfe9bf6dfdf8d 100644 (file)
@@ -1,7 +1,25 @@
+(*
+    ||M||  This file is part of HELM, an Hypertextual, Electronic        
+    ||A||  Library of Mathematics, developed at the Computer Science     
+    ||T||  Department, University of Bologna, Italy.                     
+    ||I||                                                                
+    ||T||  HELM is free software; you can redistribute it and/or         
+    ||A||  modify it under the terms of the GNU General Public License   
+    \   /  version 2 or (at your option) any later version.              
+     \ /   This software is distributed as is, NO WARRANTY.              
+      V_______________________________________________________________ *)
+
+(* $Id$ *)
+
 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
@@ -35,7 +53,4 @@ 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);;
-
+module UriMap = Map.Make(HT);;