Parsing, rendering and validation of SWHID qualifiers.
A qualifiers map uses native values: {:origin "https://example.org/repo" ; decoded string :visit "swh:1:snp:..." ; a core SWHID string :anchor "swh:1:rev:..." ; a core SWHID string :path "/src/main.clj" ; decoded string :lines [1 18] ; [from to], to may be nil :bytes [4 20]} ; [from to], to may be nil
Percent-encoding is applied only at render time, as swh.model does:
origin escapes %, ; and whitespace or control characters, path
everything but ASCII letters, digits and _.-~/. Parsing returns
decoded values.
Parsing, rendering and validation of SWHID qualifiers.
A qualifiers map uses native values:
{:origin "https://example.org/repo" ; decoded string
:visit "swh:1:snp:..." ; a core SWHID string
:anchor "swh:1:rev:..." ; a core SWHID string
:path "/src/main.clj" ; decoded string
:lines [1 18] ; [from to], to may be nil
:bytes [4 20]} ; [from to], to may be nil
Percent-encoding is applied only at render time, as swh.model does:
`origin` escapes `%`, `;` and whitespace or control characters, `path`
everything but ASCII letters, digits and `_.-~/`. Parsing returns
decoded values.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |