std.string.case
camel-case
added in 3.0
(camel-case value)converts a string-like object to camel case representation
(camel-case “hello-world”) => “helloWorld”
((wrap camel-case) ’hello_world) => ’helloWorld
capital-sep-case
added in 3.0
(capital-sep-case value)converts a string-like object to captital case representation
(capital-sep-case “hello world”) => “Hello World”
(str ((wrap capital-sep-case) :hello-world)) => “:Hello World”
dot-case
added in 3.0
(dot-case value)creates a dot-case representation
(dot-case “hello-world”) => “hello.world”
((wrap dot-case) ’helloWorld) => ’hello.world
lower-sep-case
added in 3.0
(lower-sep-case value)converts a string-like object to a lower case representation
(lower-sep-case “helloWorld”) => “hello world”
((wrap lower-sep-case) ’hello-world) => (symbol “hello world”)
pascal-case
added in 3.0
(pascal-case value)converts a string-like object to a pascal case representation
(pascal-case “helloWorld”) => “HelloWorld”
((wrap pascal-case) :hello-world) => :HelloWorld
phrase-case
added in 3.0
(phrase-case value)converts a string-like object to snake case representation
(phrase-case “hello-world”) => “Hello world”
snake-case
added in 3.0
(snake-case value)converts a string-like object to snake case representation
(snake-case “hello-world”) => “hello_world”
((wrap snake-case) ’helloWorld) => ’hello_world
spear-case
added in 3.0
(spear-case value)converts a string-like object to spear case representation
(spear-case “hello_world”) => “hello-world”
((wrap spear-case) ’helloWorld) => ’hello-world
typeless=
added in 3.0
(typeless= x y)compares two representations
(typeless= “helloWorld” “hello_world”) => true
((wrap typeless=) :a-b-c “a b c”) => true
((wrap typeless=) ’getMethod :get-method) => true
upper-camel-case
added in 4.0
(upper-camel-case value)convert string to uppercase camel
(upper-camel-case “hello-world”) => “HelloWorld”
upper-sep-case
added in 3.0
(upper-sep-case value)converts a string-like object to upper case representation
(upper-sep-case “hello world”) => “HELLO WORLD”
(str ((wrap upper-sep-case) ’hello-world)) => “HELLO WORLD”