X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Furimanager%2FuriManager.ml;h=00cf4faa7a4775409eabdcb4d8610c9278a73329;hb=eac74259f5a0aaa8056791876284c897a6827c24;hp=cd7f9a119ba38409f121604473f06400bafc4756;hpb=17b586f742e5c58501d62c81b6c517f5ba039f1d;p=helm.git diff --git a/helm/ocaml/urimanager/uriManager.ml b/helm/ocaml/urimanager/uriManager.ml index cd7f9a119..00cf4faa7 100644 --- a/helm/ocaml/urimanager/uriManager.ml +++ b/helm/ocaml/urimanager/uriManager.ml @@ -117,6 +117,13 @@ let uri_of_string str = uri ;; +let strip_xpointer uri = + let stripped_uri = Array.copy uri in + stripped_uri.(Array.length uri - 1) <- ""; (* reset xpointer field *) + let stripped_uri_str = string_of_uri stripped_uri in + set_of_uri := SetOfStrings.add stripped_uri_str stripped_uri !set_of_uri; + stripped_uri + let cicuri_of_uri uri = let completeuri = string_of_uri uri in let newcompleteuri =