Liking cljdoc? Tell your friends :D

hara.string.case


camel-caseclj

(camel-case value)

converts a string-like object to camel case representation

(camel-case :hello-world) => :helloWorld

(camel-case 'hello_world) => 'helloWorld

converts a string-like object to camel case representation

(camel-case :hello-world)
=> :helloWorld

(camel-case 'hello_world)
=> 'helloWorld
raw docstring

hump-patternclj


lower-caseclj

(lower-case value)

converts a string-like object to a lower case string

(lower-case "helloWorld") => "hello world"

(lower-case 'hello-world) => "hello world"

converts a string-like object to a lower case string

(lower-case "helloWorld")
=> "hello world"

(lower-case 'hello-world)
=> "hello world"
raw docstring

non-camel-separator-patternclj


non-snake-separator-patternclj


non-spear-separator-patternclj


re-subclj

(re-sub value pattern sub-func)

substitute a pattern by applying a function

(re-sub "aTa" hump-pattern (fn [_] "$")) => "$a"

substitute a pattern by applying a function

(re-sub "aTa" hump-pattern (fn [_] "$"))
=> "$a"
raw docstring

separate-camel-humpsclj

(separate-camel-humps value)

separate words that are camel cased (separate-camel-humps "aTaTa") => "a Ta Ta"

separate words that are camel cased
(separate-camel-humps "aTaTa")
=> "a Ta Ta"
raw docstring

snake-caseclj

(snake-case value)

converts a string-like object to snake case representation

(snake-case :hello-world) => :hello_world

(snake-case 'helloWorld) => 'hello_world

converts a string-like object to snake case representation

(snake-case :hello-world)
=> :hello_world

(snake-case 'helloWorld)
=> 'hello_world
raw docstring

spear-caseclj

(spear-case value)

converts a string-like object to spear case representation

(spear-case :hello_world) => :hello-world

(spear-case 'helloWorld) => 'hello-world

converts a string-like object to spear case representation

(spear-case :hello_world)
=> :hello-world

(spear-case 'helloWorld)
=> 'hello-world
raw docstring

title-caseclj

(title-case value)

converts a string-like object to a title case string

(title-case "helloWorld")

=> "Hello World"

(title-case :hello-world) => "Hello World"

converts a string-like object to a title case string

(title-case "helloWorld")

=> "Hello World"

(title-case :hello-world)
=> "Hello World"
raw docstring

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

× close