(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
(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"
(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")
(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
(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"
(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"
(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"
(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
(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
(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
(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"
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close