1uri_urn(n) Tcl Uniform Resource Identifier Management uri_urn(n)
2
3
4
5______________________________________________________________________________
6
8 uri_urn - URI utilities, URN scheme
9
11 package require Tcl 8.2
12
13 package require uri::urn ?1.0.3?
14
15 uri::urn::quote url
16
17 uri::urn::unquote url
18
19______________________________________________________________________________
20
22 This package provides two commands to quote and unquote the disallowed
23 characters for url using the urn scheme, registers the scheme with the
24 package uri, and provides internal helpers which will be automatically
25 used by the commands uri::split and uri::join of package uri to handle
26 urls using the urn scheme.
27
29 uri::urn::quote url
30 This command quotes the characters disallowed by the urn scheme
31 (per RFC 2141 sec2.2) in the url and returns the modified url as
32 its result.
33
34 uri::urn::unquote url
35 This commands performs the reverse of ::uri::urn::quote. It
36 takes an urn url, removes the quoting from all disallowed char‐
37 acters, and returns the modified urls as its result.
38
40 This document, and the package it describes, will undoubtedly contain
41 bugs and other problems. Please report such in the category uri of the
42 Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please also
43 report any ideas for enhancements you may have for either package
44 and/or documentation.
45
46 When proposing code changes, please provide unified diffs, i.e the out‐
47 put of diff -u.
48
49 Note further that attachments are strongly preferred over inlined
50 patches. Attachments can be made by going to the Edit form of the
51 ticket immediately after its creation, and then using the left-most
52 button in the secondary navigation bar.
53
55 rfc 2141, uri, url, urn
56
58 Networking
59
60
61
62tcllib 1.0.3 uri_urn(n)