CrossClj

0.2.3 docs

SourceDocs



RECENT
    VARS
    blank?
    capitalize
    discard-trailing-if-needed
    ends-with?
    escape
    includes?
    index-of
    join
    last-index-of
    lower-case
    pop-last-while-empty
    re-surrogate-pair
    replace
    replace-all
    replace-first
    replace-with
    reverse
    seq-reverse
    split
    split-lines
    split-with-empty-regex
    starts-with?
    trim
    trim-newline
    triml
    trimr
    upper-case

    « Index of all namespaces of this project

    (blank? s)
    True is s is nil, empty, or contains only whitespace.
    
    (capitalize s)
    Converts first character of the string to upper-case, all other
    characters to lower-case.
    Private
    (discard-trailing-if-needed limit v)
    (ends-with? s substr)
    True if s ends with substr.
    
    (escape s cmap)
    Return a new string, using cmap to escape each character ch
    from s as follows:
    
    If (cmap ch) is nil, append ch to the new string.
    If (cmap ch) is non-nil, append (str (cmap ch)) instead.
    (includes? s substr)
    True if s includes substr.
    
    (index-of s value)(index-of s value from-index)
    Return index of value (string or char) in s, optionally searching
    forward from from-index or nil if not found.
    (join coll)(join separator coll)
    Returns a string of all elements in coll, as returned by (seq coll),
    separated by an optional separator.
    (last-index-of s value)(last-index-of s value from-index)
    Return last index of value (string or char) in s, optionally
    searching backward from from-index or nil if not found.
    (lower-case s)
    Converts string to all lower-case.
    
    Private
    (pop-last-while-empty v)
    (replace s match replacement)
    Replaces all instance of match with replacement in s.
    match/replacement can be:
    
    string / string
    pattern / (string or function of match).
    Private
    (replace-all s re replacement)
    (replace-first s match replacement)
    Replaces the first instance of match with replacement in s.
    match/replacement can be:
    
    string / string
    pattern / (string or function of match).
    Private
    (replace-with f)
    (reverse s)
    Returns s with its characters reversed.
    
    Private
    (seq-reverse coll)
    (split s re)(split s re limit)
    Splits string on a regular expression. Optional argument limit is
    the maximum number of splits. Not lazy. Returns vector of the splits.
    (split-lines s)
    Splits s on 
     or 
    .
    Private
    (split-with-empty-regex s limit)
    (starts-with? s substr)
    True if s starts with substr.
    
    (trim s)
    Removes whitespace from both ends of string.
    
    (trim-newline s)
    Removes all trailing newline \n or return \r characters from
    string.  Similar to Perl's chomp.
    (triml s)
    Removes whitespace from the left side of string.
    
    (trimr s)
    Removes whitespace from the right side of string.
    
    (upper-case s)
    Converts string to all upper-case.