(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?
(escape-escapes s)
makes sure that newlines are printable
(escape-escapes "
")
=> "\
"
makes sure that newlines are printable (escape-escapes "\ ") => "\\ "
(escape-newlines s)
makes sure that newlines are printable
(escape-newlines "
")
=> "
"
makes sure that newlines are printable (escape-newlines "\ ") => "\ "
(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\\""
(has-quotes? s)
checks if a string has quotes
(has-quotes? ""hello"") => true
checks if a string has quotes (has-quotes? "\"hello\"") => true
(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"
(whitespace? s)
checks if the string is all whitespace
(whitespace? " ") => true
checks if the string is all whitespace (whitespace? " ") => true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close