uri_urn(3tcl)
π uri_urn β the URN glow-up page π
okay so bestie, you know how we've been messing with uri and it's giving so much? well this is the URN scheme edition, from the Tcl Uniform Resource Identifier Management manual (uri_urn(3tcl)), and honestly? she ate. β¨
πΈ NAME πΈ
uri_urn β URI utilities, URN scheme. that's the whole vibe. no notes. π
π¦ SYNOPSIS π¦
package require Tcl 8.5 9
package require uri::urn ?1.0.4?
uri::urn::quote url
uri::urn::unquote url
yes the ?1.0.4? is doing the most with those question marks, it's optional, we love her anyway π
π DESCRIPTION π
so this package is the moment. she gives you two commands to quote and unquote the disallowed characters for a url using the urn scheme, and then β icon behaviour β she registers the scheme with the package uri. π«Ά
but wait, there's more (there always is). she also provides internal helpers that get used automatically by the commands uri::split and uri::join from the uri package, so they know how to handle urls using the urn scheme. you don't have to do anything, it just happens. lowkey magical. π§
π COMMANDS π
uri::urn::quote urlβ this one quotes the characters that the urn scheme says are disallowed in the url (per RFC 2141 sec2.2, iykyk), and hands you back the modified url as its result. disallowed characters, you are being asked to leave. πuri::urn::unquote urlβ the reverse of::uri::urn::quote, fr fr. you give her an urn url, she removes the quoting from all the disallowed characters, and returns the modified urls as her result. undoing the thing, slaying, periodt. β¨
π BUGS, IDEAS, FEEDBACK π
ngl bestie, this document β and the package it describes β will undoubtedly contain bugs and other problems. not a vibe, but we're honest here.
- please report them in the category uri of the Tcllib Trackers:
http://core.tcl.tk/tcllib/reportlist - also please report any ideas for enhancements you may have for either the package and/or the documentation. we want the ideas. give us the ideas. π«Ά
when proposing code changes, please provide unified diffs, i.e. the output of diff -u. that's the format. that's the whole ask. π
also note, and this is important: attachments are strongly preferred over inlined patches. you can make an attachment by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar. that's the one. left-most. π
β KEYWORDS β
rfc 2141, uri, url, urn
π CATEGORY π
Networking
and that's the whole page, bestie!! π shoutout to tcllib, version 1.0.4, dated right there in the footer like a lil timestamp of destiny. go quote some disallowed characters, you absolute icon. π β¨π
π¦ where this page comes from
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms