
clojure.string__init.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-resources-viz Show documentation
Show all versions of rest-resources-viz Show documentation
Transformations and visualizations for Cortex Rest resources
The newest version!
???? 19 clojure/string__init java/lang/Object load ()V const__0 Lclojure/lang/Var; clojure/lang/Var
getRawRoot ()Ljava/lang/Object;
clojure/lang/IFn const__1 Lclojure/lang/AFn; invoke &(Ljava/lang/Object;)Ljava/lang/Object; clojure/lang/Symbol clojure/lang/Namespace find /(Lclojure/lang/Symbol;)Lclojure/lang/Namespace;
! clojure/lang/AReference # const__4 % & clojure/lang/IPersistentMap ( resetMeta <(Lclojure/lang/IPersistentMap;)Lclojure/lang/IPersistentMap; * +
$ , +clojure/string$loading__7732__auto____12643 . 0
/ 1 3 const__5 5 6 equals (Ljava/lang/Object;)Z 8 9
: clojure/string$fn__12645 <
= 1 java/util/concurrent/Callable ? clojure/lang/LockingTransaction A runInTransaction 3(Ljava/util/concurrent/Callable;)Ljava/lang/Object; C D
B E const__6 G H java/lang/Boolean J TRUE Ljava/lang/Boolean; L M K N set P
Q const__7 S T const__18 V W setMeta (Lclojure/lang/IPersistentMap;)V Y Z
[ clojure/string$reverse ]
^ 1 bindRoot (Ljava/lang/Object;)V ` a
b const__19 d e const__22 g h #clojure/string$re_quote_replacement j
k 1 const__23 m n const__27 p q clojure/string$replace_by s
t 1 const__28 v w const__31 y z clojure/string$replace |
} 1 const__32 ? const__35 ? ? clojure/string$replace_first_by ?
? 1 const__36 ? ? const__39 ? ? !clojure/string$replace_first_char ?
? 1 const__40 ? ? const__43 ? ? clojure/string$replace_first_str ?
? 1 const__44 ? ? const__47 ? ? clojure/string$replace_first ?
? 1 const__48 ? ? const__51 ? ? clojure/string$join ?
? 1 const__52 ? ? const__55 ? ? clojure/string$capitalize ?
? 1 const__56 ? ? const__59 ? ? clojure/string$upper_case ?
? 1 const__60 ? ? const__63 ? ? clojure/string$lower_case ?
? 1 const__64 ? ? const__67 ? ? clojure/string$split ?
? 1 const__68 ? ? const__71 ? ? clojure/string$split_lines ?
? 1 const__72 ? ? const__75 ? ? clojure/string$trim ?
? 1 const__76 ? ? const__79 ? ? clojure/string$triml ?
? 1 const__80 ? ? const__83 ? ? clojure/string$trimr ?
? 1 const__84 ? ? const__87 ? ? clojure/string$trim_newline ?
? 1 const__88 ? ? const__91 clojure/string$blank_QMARK_
1 const__92 const__95
clojure/string$escape
1 const__96 const__99 clojure/string$index_of
1
const__100
const__103 clojure/string$last_index_of
1
const__104! "
const__107$ % !clojure/string$starts_with_QMARK_'
( 1
const__108* +
const__111- . clojure/string$ends_with_QMARK_0
1 1
const__1123 4
const__1156 7 clojure/string$includes_QMARK_9
: 1 __init0 clojure.core= in-ns? clojure/lang/RTA var 8(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Var;CD
BE clojure.stringG intern ;(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Symbol;IJ
K clojure/lang/IObjM docO keyword <(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword;QR
BS?Clojure String utilities
It is poor form to (:use clojure.string). Instead, use require
with :as to specify a prefix, e.g.
(ns your.namespace.here
(:require [clojure.string :as str]))
Design notes for clojure.string:
1. Strings are objects (as opposed to sequences). As such, the
string being manipulated is the first argument to a function;
passing nil will result in a NullPointerException unless
documented otherwise. If you want sequence-y behavior instead,
use a sequence.
2. Functions are generally not lazy, and call straight to host
methods where those are available and efficient.
3. Functions take advantage of String implementation details to
write high-performing loop/recurs instead of using higher-order
functions. (This is not idiomatic in general-purpose application
code.)
4. When a function is documented to accept a string argument, it
will take any implementation of the correct *interface* on the
host platform. In Java, this is CharSequence, which is more
general than String. In ordinary usage you will almost always
pass concrete strings. If you are doing something unusual,
e.g. passing a mutable implementation of CharSequence, then
thread-safety is your responsibility.U authorW ,Stuart Sierra, Stuart Halloway, David LiebkeY map 2([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;[\
B] withMeta 2(Lclojure/lang/IPersistentMap;)Lclojure/lang/IObj;_`Na clojure/lang/AFnc *warn-on-reflection*e reverseg tagi java.lang.Stringk classForName %(Ljava/lang/String;)Ljava/lang/Class;mn
Bo arglistsq ss CharSequenceu clojure/lang/Tuplew create 4(Ljava/lang/Object;)Lclojure/lang/IPersistentVector;yz
x{ java/util/Arrays} asList %([Ljava/lang/Object;)Ljava/util/List;?
~? clojure/lang/PersistentList? 0(Ljava/util/List;)Lclojure/lang/IPersistentList;y?
?? 'Returns s with its characters reversed.? added? 1.2? line? java/lang/Integer? valueOf (I)Ljava/lang/Integer;??
?? column? file? clojure/string.clj? re-quote-replacement? replacement? ?Given a replacement string that you wish to be a literal
replacement for a pattern match in replace or replace-first, do the
necessary escaping of special characters in the replacement.? 1.5?
replace-by? private? re? f? X(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lclojure/lang/IPersistentVector;y?
x? replace? match?0Replaces all instance of match with replacement in s.
match/replacement can be:
string / string
char / char
pattern / (string or function of match).
See also replace-first.
The replacement is literal (i.e. none of its characters are treated
specially) for all cases above except pattern / string.
For pattern / string, $1, $2, etc. in the replacement string are
substituted with the string that matched the corresponding
parenthesized group in the pattern. If you wish your replacement
string r to be used literally, use (re-quote-replacement r) as the
replacement argument. See also documentation for
java.util.regex.Matcher's appendReplacement method.
Example:
(clojure.string/replace "Almost Pig Latin" #"\b(\w)(\w+)\b" "$2$1ay")
-> "lmostAay igPay atinLay"? replace-first-by? Pattern? replace-first-char? Character? replace-first-str? String?
replace-first?[Replaces the first instance of match with replacement in s.
match/replacement can be:
char / char
string / string
pattern / (string or function of match).
See also replace.
The replacement is literal (i.e. none of its characters are treated
specially) for all cases above except pattern / string.
For pattern / string, $1, $2, etc. in the replacement string are
substituted with the string that matched the corresponding
parenthesized group in the pattern. If you wish your replacement
string r to be used literally, use (re-quote-replacement r) as the
replacement argument. See also documentation for
java.util.regex.Matcher's appendReplacement method.
Example:
(clojure.string/replace-first "swap first two words"
#"(\w+)(\s+)(\w+)" "$3$2$1")
-> "first swap two words"? join? coll? separator? F(Ljava/lang/Object;Ljava/lang/Object;)Lclojure/lang/IPersistentVector;y?
x? kReturns a string of all elements in coll, as returned by (seq coll),
separated by an optional separator.?
capitalize? [Converts first character of the string to upper-case, all other
characters to lower-case.?
upper-case? "Converts string to all upper-case.?
lower-case? "Converts string to all lower-case.? split? 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? Splits s on \n or \r\n.? trim? ,Removes whitespace from both ends of string.? triml? 0Removes whitespace from the left side of string.? trimr? 1Removes whitespace from the right side of string.? trim-newline? `Removes all trailing newline \n or return \r characters from
string. Similar to Perl's chomp.? blank?? 5True if s is nil, empty, or contains only whitespace.? escape? 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.? index-of value
from-index long pReturn index of value (string or char) in s, optionally searching
forward from from-index or nil if not found. 1.8
__init1
last-index-of
vReturn last index of value (string or char) in s, optionally
searching backward from from-index or nil if not found. starts-with? substr True if s starts with substr.
ends-with? True if s ends with substr. includes? True if s includes substr. <