Liking cljdoc? Tell your friends :D

swhid.qualifier

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.
raw docstring

anchorclj

(anchor swhid)
source

byte-rangeclj

(byte-range swhid)
source

line-rangeclj

(line-range swhid)
source

originclj

(origin swhid)
source

pathclj

(path swhid)
source

qualifiersclj

(qualifiers swhid)
source

visitclj

(visit swhid)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close