X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnUri.ml;h=e94ee90372cc095dd297fd4db7831c46e42076af;hb=5b45f78ed4293ebbe8cc73ad925bca11a300d021;hp=1b7d519431ed419d92791269553d24b3e9f802f0;hpb=813025418906707f7bbbf43732fc0e8d5cfc6943;p=helm.git diff --git a/helm/software/components/ng_kernel/nUri.ml b/helm/software/components/ng_kernel/nUri.ml index 1b7d51943..e94ee9037 100644 --- a/helm/software/components/ng_kernel/nUri.ml +++ b/helm/software/components/ng_kernel/nUri.ml @@ -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