(currency-format n)
formats currency using the current locale to change locale set goog.i18n.NumberFormatSymbols eg: (set! goog.i18n.NumberFormatSymbols goog.i18n.NumberFormatSymbols_it_IT) see here for supported locales https://github.com/google/closure-library/blob/master/closure/goog/i18n/numberformatsymbols.js
formats currency using the current locale to change locale set goog.i18n.NumberFormatSymbols eg: (set! goog.i18n.NumberFormatSymbols goog.i18n.NumberFormatSymbols_it_IT) see here for supported locales https://github.com/google/closure-library/blob/master/closure/goog/i18n/numberformatsymbols.js
(format fmt & args)
Formats a string using goog.string.format. e.g: (format "Cost: %.2f" 10.0234)
Formats a string using goog.string.format. e.g: (format "Cost: %.2f" 10.0234)
(pluralize items & [word ending1 ending2 :as opts])
pluralizes the word based on the number of items (util/pluralize ["John"] "lad") (util/pluralize ["John" "James"] "lad") (util/pluralize ["Alice"] "lad" "y" "ies")
pluralizes the word based on the number of items (util/pluralize ["John"] "lad") (util/pluralize ["John" "James"] "lad") (util/pluralize ["Alice"] "lad" "y" "ies")
(printf fmt & args)
Prints formatted output, as per format
Prints formatted output, as per format
(remove-tags s & tags)
removes specified tags, eg: (remove-tags "<p>foo bar</p>" "p")
removes specified tags, eg: (remove-tags "<p>foo bar</p>" "p")
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close