Strings
Coerce to char
functioncljs.core
Formats a string using goog.string.format.
functioncljs.core
Returns a Keyword with the given namespace and name. Do not use : in the keyword strings, it will be added automaticall...
functioncljs.core
Returns the name String of a string, symbol or keyword.
functioncljs.core
Parse strings "true" or "false" and return a boolean, or nil if invalid. Note that this explicitly excludes strings with...
functioncljs.core
Parse string with floating point components and return a floating point value, or nil if parse fails. Grammar: https://d...
functioncljs.core
Parse string of decimal digits with optional leading -/+ and return an integer value, or nil if parse fails
functioncljs.core
Parse a string representing a UUID and return a UUID instance, or nil if parse fails. Grammar: https://docs.oracle.com/j...
functioncljs.core
With no args, returns the empty string. With one arg x, returns x.toString(). (str nil) returns the empty string. With ...
macrocljs.core
Returns a Symbol with the given namespace and name. Arity-1 works on strings, keywords, and vars.
functioncljs.core
True if s is nil, empty, or contains only whitespace.
functionclojure.string
Converts first character of the string to upper-case, all other characters to lower-case.
functionclojure.string
True if s ends with substr.
functionclojure.string
Return a new string, using cmap to escape each character ch from s as follows: If (cmap ch) is nil, append ch to the ne...
functionclojure.string
True if s includes substr.
functionclojure.string
Return index of value (string or char) in s, optionally searching forward from from-index or nil if not found.
functionclojure.string
Returns a string of all elements in coll, as returned by (seq coll), separated by an optional separator.
functionclojure.string
Return last index of value (string or char) in s, optionally searching backward from from-index or nil if not found.
functionclojure.string
Converts string to all lower-case.
functionclojure.string
Replaces all instance of match with replacement in s. match/replacement can be: string / string pattern / (string or f...
functionclojure.string
Replaces the first instance of match with replacement in s. match/replacement can be: string / string pattern / (strin...
functionclojure.string
Returns s with its characters reversed.
functionclojure.string
Splits string on a regular expression. Optional argument limit is the maximum number of parts. Not lazy. Returns vector ...
functionclojure.string
Splits s on \n or \r\n. Trailing empty lines are not returned.
functionclojure.string
True if s starts with substr.
functionclojure.string
Returns the substring of s beginning at start inclusive, and ending at end (defaults to length of string), exclusive.
functioncljs.core
Removes whitespace from both ends of string.
functionclojure.string
Removes all trailing newline \n or return \r characters from string. Similar to Perl's chomp.
functionclojure.string
Removes whitespace from the left side of string.
functionclojure.string
Removes whitespace from the right side of string.
functionclojure.string
Converts string to all upper-case.
functionclojure.string
Returns true if x is a JavaScript string.
macrocljs.core
Returns the first regex match, if any, of s to re, using re.exec(s). Returns a vector, containing first the matching sub...
functioncljs.core
Returns the result of (re-find re s) if re fully matches s.
functioncljs.core
Returns an instance of RegExp which has compiled the provided string.
functioncljs.core
Returns a lazy sequence of successive matches of re in s.
functioncljs.core