Parser for language tags described by the BCP47 specification. https://tools.ietf.org/html/bcp47
Parser for language tags described by the BCP47 specification. https://tools.ietf.org/html/bcp47
(format-language-tag tag)
Returns the string representation of the given format tag.
Returns the string representation of the given format tag.
(get-element-type productions allowed-states)
(language-tag-string-truncation-strings tag-string)
Returns a sequence of successively truncated language tag strings for the given tag string.
Returns a sequence of successively truncated language tag strings for the given tag string.
(next-states state)
Returns the set of tag elements which can follow the given element
Returns the set of tag elements which can follow the given element
(non-empty-prefixes nev)
Returns a collection of the non-empty prefixes of the given vector in descending order of size
Returns a collection of the non-empty prefixes of the given vector in descending order of size
The next part of a language tag given the current element, its type and the elements that follow. Returns a pair containing the remaining elements and the parsed tag part.
The next part of a language tag given the current element, its type and the elements that follow. Returns a pair containing the remaining elements and the parsed tag part.
(parse-language-tag tag-string)
Parses a language tag string. Throws IllegalArgumentException if the string does not represent a valid language tag.
Parses a language tag string. Throws IllegalArgumentException if the string does not represent a valid language tag.
(parse-production-sequence elements production min-count max-count)
Parses a sequence of tag elements which match the given production in the grammar. Parses at most max-count items if specified. Throws an exception if fewer than min-count matches were found when specified.
Parses a sequence of tag elements which match the given production in the grammar. Parses at most max-count items if specified. Throws an exception if fewer than min-count matches were found when specified.
Grammar production which can start each grammar element
Grammar production which can start each grammar element
(truncations tag)
Returns a sequence of successively shorter version of a format tag where the right-most sub-tag is removed from the preceding tag.
Returns a sequence of successively shorter version of a format tag where the right-most sub-tag is removed from the preceding tag.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close