Liking cljdoc? Tell your friends :D

fooheads.casing.string

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.
raw docstring

convertclj/s

(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.
raw docstring

groupclj/s

(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.
raw docstring

join-blankclj/s

(join-blank strings)

Joins strings without a separator

Joins strings without a separator
raw docstring

join-dashclj/s

(join-dash strings)

Joins strings with - as a separator

Joins strings with - as a separator
raw docstring

join-underscoreclj/s

(join-underscore strings)

Joins strings with _ as a separator

Joins strings with _ as a separator
raw docstring

map-camelclj/s

(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
raw docstring

map-lowerclj/s

(map-lower strings)

Maps a list of strings into lower case.

Maps a list of strings into lower case.
raw docstring

map-pascalclj/s

(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.
raw docstring

map-upperclj/s

(map-upper strings)

Maps a list of strings into upper case.

Maps a list of strings into upper case.
raw docstring

splitclj/s

(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.
raw docstring

split-dashclj/s

(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.
raw docstring

split-underscoreclj/s

(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.
raw docstring

split-wordclj/s

(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'
raw docstring

split-wordnumclj/s

(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'
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close