X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnUri.ml;h=e94ee90372cc095dd297fd4db7831c46e42076af;hb=1652681b5eb49332f1c78e6c26d3ae5c7253d382;hp=16fd7e489f79efd070019f7f75cfbc4679dbb770;hpb=e48acbc0d00717ce8f12412673ece4e4ee0e9642;p=helm.git diff --git a/helm/software/components/ng_kernel/nUri.ml b/helm/software/components/ng_kernel/nUri.ml index 16fd7e489..e94ee9037 100644 --- a/helm/software/components/ng_kernel/nUri.ml +++ b/helm/software/components/ng_kernel/nUri.ml @@ -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 @@ -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);; -