(append! holder & args)
Append all arguments to the StringBuilder instance.
Append all arguments to the StringBuilder instance.
(fmt format-string)
Make a function that renders given format-string.
Make a function that renders given format-string.
(join! holder delimiter coll)
Like clojure.string/join, but appends tokens to a holder instead of returning a string.
Like clojure.string/join, but appends tokens to a holder instead of returning a string.
(join-all! holder delimiter & args)
Interpose args with delimiter and apply each element of the result sequence to the (.append holder %) method.
Interpose args with delimiter and apply each element of the result sequence to the (.append holder %) method.
(nformat format-string)
(nformat format-string params)
Render a format-string having named parameters in {param} form. Named parameters are assumed to be local vars unless specified in a map argument, eg. {:param "value"}.
Render a format-string having named parameters in {param} form. Named parameters are assumed to be local vars unless specified in a map argument, eg. {:param "value"}.
(nrender format-tokens-or-string params)
Render format-tokens or format-string having named parameters in {param} form. Like nformat
, but slower and can
handle non-literal format string.
Render format-tokens or format-string having named parameters in {param} form. Like `nformat`, but slower and can handle non-literal format string.
(repchar n ch)
Repeat a char given number of times and return the final string.
Repeat a char given number of times and return the final string.
(repstr n token)
Repeat a string given number of times and return the final string.
Repeat a string given number of times and return the final string.
(strcat)
(strcat token)
(strcat token & more)
Concatenate strings faster than 'str'. Note that this is a macro, hence cannot be used as a function.
Concatenate strings faster than 'str'. Note that this is a macro, hence cannot be used as a function.
(strdel delimiter & args)
Concatenate tokens with specified delimiter.
Concatenate tokens with specified delimiter.
(strfmt format-str & args)
Format (like clojure.core/format but only %b, %d, %f, %h, %n, %o, %s, %x supported) given string with arguments. The format-string must resolve as a string at compile time. Flags and width/precision specifiers are not supported.
Format (like clojure.core/format but only %b, %d, %f, %h, %n, %o, %s, %x supported) given string with arguments. The format-string must resolve as a string at compile time. Flags and width/precision specifiers are not supported.
(strtbl rows)
(strtbl ks rows)
Return string representation of a textual table. Like clojure.pprint/print-table, but faster and does not print.
Return string representation of a textual table. Like clojure.pprint/print-table, but faster and does not print.
(with-obj-str bindings & body)
Given a single-binding vector (or a local symbol that's automatically bound to a new StringBuilder instance), execute the specified body of code in the binding context and return the string representation of the local.
Given a single-binding vector (or a local symbol that's automatically bound to a new StringBuilder instance), execute the specified body of code in the binding context and return the string representation of the local.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close