The core casing functions, operating only on strings. Some functions here are very trival and could be inlined elsewhere, but exists for completeness for the consuming code.
The core casing functions, operating only on strings. Some functions here are very trival and could be inlined elsewhere, but exists for completeness for the consuming code.
(convert split-fn map-fn join-fn s)
Converts a string from one format to another. Splits, maps and joins using the provided functions.
Converts a string from one format to another. Splits, maps and joins using the provided functions.
(group re s)
Groups (re-seq) using a regexp and removes empty matches. The base for more specific split functions.
Groups (re-seq) using a regexp and removes empty matches. The base for more specific split functions.
(join-blank strings)
Joins strings without a separator
Joins strings without a separator
(join-dash strings)
Joins strings with - as a separator
Joins strings with - as a separator
(join-underscore strings)
Joins strings with _ as a separator
Joins strings with _ as a separator
(map-camel strings)
Maps a list of strings into camel case. Downcase the first string and downcase + capitalize the rest
Maps a list of strings into camel case. Downcase the first string and downcase + capitalize the rest
(map-lower strings)
Maps a list of strings into lower case.
Maps a list of strings into lower case.
(map-pascal strings)
Maps a list of strings into pascal case. Downcase + capitalize each string.
Maps a list of strings into pascal case. Downcase + capitalize each string.
(map-upper strings)
Maps a list of strings into upper case.
Maps a list of strings into upper case.
(split re s)
Splits using a regexp and removes empty matches. The base for more specific split functions.
Splits using a regexp and removes empty matches. The base for more specific split functions.
(split-dash s)
Splits a string on dash and returns the parts. The - is not kept.
Splits a string on dash and returns the parts. The - is not kept.
(split-underscore s)
Splits a string on underscore and returns the parts. The _ is not kept.
Splits a string on underscore and returns the parts. The _ is not kept.
(split-word s)
Split a camel case or pascal case string into words. Keeps numbers and words separate, which means that version2 becomes 'version' and '2'
Split a camel case or pascal case string into words. Keeps numbers and words separate, which means that version2 becomes 'version' and '2'
(split-wordnum s)
Split a camel case or pascal case string into wordnums. Keeps words and numbers together, which means that version2 becomes 'version2'
Split a camel case or pascal case string into wordnums. Keeps words and numbers together, which means that version2 becomes 'version2'
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close