Liking cljdoc? Tell your friends :D

clojask-io.delimiter


format-delimiterclj

(format-delimiter delimiter)

Return a regex matching delimiter literally, so characters such as | * ? are not interpreted as regex syntax. e.g. (str/split "123@!?456" (format-delimiter "@!?")) => ["123" "456"]

Return a regex matching delimiter literally, so characters such as | * ?
are not interpreted as regex syntax.
e.g. (str/split "123@!?456" (format-delimiter "@!?")) => ["123" "456"]
sourceraw docstring

get-delimiterclj

(get-delimiter name)
(get-delimiter name max-len)

Infer the delimiter of a delimited text file: a substring of up to max-len characters (default 3), without letters or digits, that occurs equally often on each of the first 1000 non-blank lines (quoted values ignored). Common delimiters are preferred, otherwise the most frequent candidate. Returns nil if there is no candidate or the file cannot be read.

Infer the delimiter of a delimited text file: a substring of up to max-len
characters (default 3), without letters or digits, that occurs equally
often on each of the first 1000 non-blank lines (quoted values ignored).
Common delimiters are preferred, otherwise the most frequent candidate.
Returns nil if there is no candidate or the file cannot be read.
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