Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.utils.string-formatter


comma-separated-keywordsclj

(comma-separated-keywords words)
source

dash->underscore-keysclj

(dash->underscore-keys m)

Converts all top-level keys (including nested maps) in m to use dashes instead of underscores as word separators

Converts all top-level keys (including nested maps) in `m` to use dashes
instead of underscores as word separators
sourceraw docstring

dashes->underscoresclj

(dashes->underscores str)

Accepts a string or a keyword as an argument, replaces all occurrences of the dash/hyphen character with an underscore, and returns the same type (string or keyword) that was passed in. This is useful for translating data structures from their wire format to the format that is needed for JDBC.

Accepts a string or a keyword as an argument, replaces all occurrences of the
dash/hyphen character with an underscore, and returns the same type (string
or keyword) that was passed in.  This is useful for translating data structures
from their wire format to the format that is needed for JDBC.
sourceraw docstring

pprint-json-parse-exceptionclj

(pprint-json-parse-exception error query)

Returns a parsed JsonParseException message. From the second line of the error message, the line and column index are extracted, so that we can place an arrow, pointing at that position.

Returns a parsed JsonParseException message.
From the second line of the error message, the line and
column index are extracted, so that we can place an arrow,
pointing at that position.
sourceraw docstring

quotedclj

(quoted s)
source

re-quoteclj

(re-quote s)

Quotes s so that all of its characters will be matched literally.

Quotes s so that all of its characters will be matched literally.
sourceraw docstring

underscore->dash-keysclj

(underscore->dash-keys m)

Converts all top-level keys (including nested maps) in m to use underscores instead of underscores as word separators

Converts all top-level keys (including nested maps) in `m` to use underscores
instead of underscores as word separators
sourceraw docstring

underscores->dashesclj

(underscores->dashes s)

Accepts a string or a keyword as an argument, replaces all occurrences of the underscore character with a dash, and returns the same type (string or keyword) that was passed in. This is useful for translating data structures from their JDBC-compatible representation to their wire format representation.

Accepts a string or a keyword as an argument, replaces all occurrences of the
underscore character with a dash, and returns the same type (string
or keyword) that was passed in.  This is useful for translating data structures
from their JDBC-compatible representation to their wire format representation.
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