Liking cljdoc? Tell your friends :D

hive-ingest-kit.rfc-structure

Pure structural grammar of IETF RFC plaintext.

Depagination, masthead fields, section headings and section splitting. Consumed by the RFC text parser and by section-aware chunking.

Pure structural grammar of IETF RFC plaintext.

Depagination, masthead fields, section headings and section splitting.
Consumed by the RFC text parser and by section-aware chunking.
raw docstring

abstractclj

(abstract lines)

The first paragraph of the abstract, or nil.

Matches a bare Abstract heading and a numbered N. ABSTRACT section.

The first paragraph of the abstract, or nil.

Matches a bare `Abstract` heading and a numbered `N. ABSTRACT` section.
sourceraw docstring

depaginateclj

(depaginate text)

Remove RFC page furniture, collapsing the blank runs it leaves behind.

Every content line keeps its indentation.

Remove RFC page furniture, collapsing the blank runs it leaves behind.

Every content line keeps its indentation.
sourceraw docstring

furniture-line?clj

(furniture-line? line)

True when a line is an RFC page header, page footer, or form feed.

True when a line is an RFC page header, page footer, or form feed.
sourceraw docstring

heading-atclj

(heading-at line)

Parse one line as a section heading, or nil.

Headings start at column 0. Returns {:level :number :text}.

Parse one line as a section heading, or nil.

Headings start at column 0. Returns {:level :number :text}.
sourceraw docstring

headingsclj

(headings text)

All section headings in document order.

All section headings in document order.
sourceraw docstring

masthead-authorsclj

(masthead-authors masthead)

Author names, affiliations and publication date from the masthead's right column. Returns {:rfc/authors [...] :rfc/date "..."}; keys may be absent.

Author names, affiliations and publication date from the masthead's right
column. Returns {:rfc/authors [...] :rfc/date "..."}; keys may be absent.
sourceraw docstring

masthead-fieldsclj

(masthead-fields masthead)

RFC masthead fields taken from the left column of the masthead block.

RFC masthead fields taken from the left column of the masthead block.
sourceraw docstring

preamble-blocksclj

(preamble-blocks lines)

Blank-line-separated blocks preceding the status section.

Block 0 is the masthead; block 1 is the document title.

Blank-line-separated blocks preceding the status section.

Block 0 is the masthead; block 1 is the document title.
sourceraw docstring

referencesclj

(references text self)

Distinct RFC numbers cited by the text, excluding self.

Returns [{:href url :text "RFC N"} ...] in ascending numeric order.

Distinct RFC numbers cited by the text, excluding `self`.

Returns [{:href url :text "RFC N"} ...] in ascending numeric order.
sourceraw docstring

rfc-urlclj

(rfc-url n)

Canonical plaintext URL of an RFC number.

Canonical plaintext URL of an RFC number.
sourceraw docstring

split-columnsclj

(split-columns line)

Split a masthead line into [left-column right-column].

A line with no column gap yields ["" trimmed-line].

Split a masthead line into [left-column right-column].

A line with no column gap yields ["" trimmed-line].
sourceraw docstring

split-sectionsclj

(split-sections text)

Split depaginated RFC text into sections at column-0 headings.

Returns [{:heading text-or-nil :level n-or-nil :number s-or-nil :lines [...]} ...]; text preceding the first heading forms a leading section with :heading nil.

Split depaginated RFC text into sections at column-0 headings.

Returns [{:heading text-or-nil :level n-or-nil :number s-or-nil :lines [...]}
...]; text preceding the first heading forms a leading section with
:heading nil.
sourceraw docstring

supersededclj

(superseded obsoletes)

Links to the RFCs an Obsoletes: field names.

Links to the RFCs an Obsoletes: field names.
sourceraw docstring

titleclj

(title lines)

The document title — the centered block following the masthead, or nil.

The document title — the centered block following the masthead, or nil.
sourceraw docstring

toc-line?clj

(toc-line? line)

True for a table-of-contents entry — a dot leader run to a page number.

True for a table-of-contents entry — a dot leader run to a page number.
sourceraw docstring

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