Liking cljdoc? Tell your friends :D

hara.string.case


camel-case

(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-pattern


lower-case

(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-pattern


non-snake-separator-pattern


non-spear-separator-pattern


re-sub

(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-humps

(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-case

(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-case

(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-case

(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