]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nUri.ml
Patch to add a debugging string to HExtlib.split_nth reverted
[helm.git] / helm / software / components / ng_kernel / nUri.ml
index e4dcddc0d0bb509edcda40cfb5f2abf04b26d2cd..e94ee90372cc095dd297fd4db7831c46e42076af 100644 (file)
@@ -5,8 +5,8 @@
     ||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.     
+    \   /  version 2 or (at your option) any later version.              
+     \ /   This software is distributed as is, NO WARRANTY.              
       V_______________________________________________________________ *)
 
 (* $Id$ *)
@@ -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