Liking cljdoc? Tell your friends :D

hara.string.prose


escape-dollarsclj

(escape-dollars s)

for regex purposes, escape dollar signs in strings

(escape-dollars "$") => string?

for regex purposes, escape dollar signs in strings

(escape-dollars "$")
=> string?
raw docstring

escape-escapesclj

(escape-escapes s)

makes sure that newlines are printable

(escape-escapes "
") => "\ "

makes sure that newlines are printable
 
   (escape-escapes "\
")
   => "\\
"
raw docstring

escape-newlinesclj

(escape-newlines s)

makes sure that newlines are printable

(escape-newlines "
") => "
"

makes sure that newlines are printable
 
   (escape-newlines "\
")
   => "\
"
raw docstring

escape-quotesclj

(escape-quotes s)

makes sure that quotes are printable in string form

(escape-quotes ""hello"") => "\"hello\""

makes sure that quotes are printable in string form

(escape-quotes "\"hello\"")
=> "\\"hello\\""
raw docstring

has-quotes?clj

(has-quotes? s)

checks if a string has quotes

(has-quotes? ""hello"") => true

checks if a string has quotes

(has-quotes? "\"hello\"")
=> true
raw docstring

strip-quotesclj

(strip-quotes s)

gets rid of quotes in a string

(strip-quotes ""hello"") => "hello"

gets rid of quotes in a string

(strip-quotes "\"hello\"")
=> "hello"
raw docstring

whitespace?clj

(whitespace? s)

checks if the string is all whitespace

(whitespace? " ") => true

checks if the string is all whitespace

(whitespace? "        ")
=> true
raw docstring

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

× close