Liking cljdoc? Tell your friends :D

hara.string.base.case


+hump-pattern+clj


+non-camel-pattern+clj


+non-snake-pattern+clj


+non-spear-pattern+clj


camel-caseclj

(camel-case value)

converts a string-like object to camel case representation

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

(string/camel-case 'hello_world) => 'helloWorld

converts a string-like object to camel case representation

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

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

capital-sep-caseclj

(capital-sep-case value)

converts a string-like object to captital case representation

(capital-sep-case "hello world") => "Hello World"

(str (string/capital-sep-case :hello-world)) => ":Hello World"

converts a string-like object to captital case representation

(capital-sep-case "hello world")
=> "Hello World"

(str (string/capital-sep-case :hello-world))
=> ":Hello World"
raw docstring

lower-sep-caseclj

(lower-sep-case value)

converts a string-like object to a lower case representation

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

(string/lower-sep-case 'hello-world) => (symbol "hello world")

converts a string-like object to a lower case representation

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

(string/lower-sep-case 'hello-world)
=> (symbol "hello world")
raw docstring

pascal-caseclj

(pascal-case value)

converts a string-like object to a pascal case representation

(pascal-case "helloWorld") => "HelloWorld"

(string/pascal-case :hello-world) => :HelloWorld

converts a string-like object to a pascal case representation

(pascal-case "helloWorld")
=> "HelloWorld" 

(string/pascal-case :hello-world)
=> :HelloWorld
raw docstring

phrase-caseclj

(phrase-case value)

converts a string-like object to snake case representation

(phrase-case "hello-world") => "Hello world"

converts a string-like object to snake case representation

(phrase-case "hello-world")
=> "Hello world"
raw docstring

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-humpsclj

(separate-humps value)

separate words that are camel cased

(separate-humps "aTaTa") => "a Ta Ta"

separate words that are camel cased

(separate-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"

(string/snake-case 'helloWorld) => 'hello_world

converts a string-like object to snake case representation

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

(string/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"

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

converts a string-like object to spear case representation

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

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

typeless=clj

(typeless= x y)

compares two representations

(typeless= "helloWorld" "hello_world") => true

(string/typeless= :a-b-c "a b c") => true

(string/typeless= 'getMethod :get-method) => true

compares two representations 

(typeless= "helloWorld" "hello_world")
=> true

(string/typeless= :a-b-c "a b c")
=> true

(string/typeless= 'getMethod :get-method)
=> true
raw docstring

upper-sep-caseclj

(upper-sep-case value)

converts a string-like object to upper case representation

(upper-sep-case "hello world") => "HELLO WORLD"

(str (string/upper-sep-case 'hello-world)) => "HELLO WORLD"

converts a string-like object to upper case representation

(upper-sep-case "hello world")
=> "HELLO WORLD"

(str (string/upper-sep-case 'hello-world))
=> "HELLO WORLD"
raw docstring

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

× close