diff options
author | Tom Faulhaber <git_net@infolace.com> | 2009-08-28 09:58:38 -0700 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2009-08-28 09:58:38 -0700 |
commit | 73376744cfdb2e64291732fb91f2e62b29bb1d6a (patch) | |
tree | c402f204084ac139fab90945251467768393c206 | |
parent | 1391798c6a1684bd1f554e39f223c8f70acd0825 (diff) |
Updated documentation for commit 4b4f6ab5bcab58c4219eb50395bd366daea3ecc3
-rw-r--r-- | api-index.html | 1 | ||||
-rw-r--r-- | api-index.json | 71 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | str-utils2-api.html | 75 |
4 files changed, 87 insertions, 62 deletions
diff --git a/api-index.html b/api-index.html index daf024dd..c83cfe2f 100644 --- a/api-index.html +++ b/api-index.html @@ -230,6 +230,7 @@ Shortcuts:<br /> </span></span><span id="section-content"> <a href="ns-utils-api.html#docs">docs</a><span id="line-content"> macro ns-utils Prints documentation for the public vars in a name... </span></span><span id="section-content"> <a href="monads-api.html#domonad">domonad</a><span id="line-content"> macro monads Monad comprehension. Takes the name of a monad, a ... </span></span><span id="section-content"> <a href="http.agent-api.html#done?">done?</a><span id="line-content"> function http.agent Returns true if the HTTP request/response has comp... +</span></span><span id="section-content"> <a href="str-utils2-api.html#drop">drop</a><span id="line-content"> function str-utils2 Drops first n characters from s. Returns an empty... </span></span><span id="section-content"> <a href="sql-api.html#drop-table">drop-table</a><span id="line-content"> function sql Drops a table on the open database connection give... </span></span></pre> </div><div id="index-body"> diff --git a/api-index.json b/api-index.json index eed8af86..d953cfc8 100644 --- a/api-index.json +++ b/api-index.json @@ -489,7 +489,7 @@ "author":"Stuart Sierra", "doc":"String utilities for Clojure"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj", "wiki-url": "http://richhickey.github.com/clojure-contrib/str-utils2-api.html", "name":"clojure.contrib.str-utils2", @@ -5087,7 +5087,7 @@ "Returns a string of all elements in 'sequence', separated by\n'separator'. Like Perl's 'join'.", "name":"str-join"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L102", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L102", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/blank?", "namespace":"clojure.contrib.str-utils2", @@ -5095,7 +5095,7 @@ "doc":"True if s is nil, empty, or contains only whitespace.", "name":"blank?"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L127", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L128", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/butlast", "namespace":"clojure.contrib.str-utils2", @@ -5104,7 +5104,7 @@ "Returns s without the last n characters. Returns an empty string\nif n is greater than the length of s.\n\nNote the argument order is the opposite of clojure.core/butlast;\nthis is to keep the string as the first argument for use with ->", "name":"butlast"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L282", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L285", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/capitalize", "namespace":"clojure.contrib.str-utils2", @@ -5113,7 +5113,7 @@ "Converts first character of the string to upper-case, all other\ncharacters to lower-case.", "name":"capitalize"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L255", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L258", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/chomp", "namespace":"clojure.contrib.str-utils2", @@ -5122,7 +5122,7 @@ "Removes all trailing newline \\n or return \\r characters from\nstring. Note: String.trim() is similar and faster.", "name":"chomp"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L246", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L249", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/chop", "namespace":"clojure.contrib.str-utils2", @@ -5131,7 +5131,7 @@ "Removes the last character of string, does nothing on a zero-length\nstring.", "name":"chop"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L77", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L77", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/codepoints", "namespace":"clojure.contrib.str-utils2", @@ -5140,7 +5140,7 @@ "Returns a sequence of integer Unicode code points in s. Handles\nUnicode supplementary characters (above U+FFFF) correctly.", "name":"codepoints"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L361", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L364", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/contains?", "namespace":"clojure.contrib.str-utils2", @@ -5148,7 +5148,7 @@ "doc":"True if s contains the substring.", "name":"contains?"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L37", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L37", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/dochars", "namespace":"clojure.contrib.str-utils2", @@ -5157,7 +5157,7 @@ "bindings => [name string]\n\nRepeatedly executes body, with name bound to each character in\nstring. Does NOT handle Unicode supplementary characters (above\nU+FFFF).", "name":"dochars"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L53", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L53", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/docodepoints", "namespace":"clojure.contrib.str-utils2", @@ -5166,7 +5166,16 @@ "bindings => [name string]\n\nRepeatedly executes body, with name bound to the integer code point\nof each Unicode character in the string. Handles Unicode\nsupplementary characters (above U+FFFF) correctly.", "name":"docodepoints"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L90", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L117", + "wiki-url": + "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/drop", + "namespace":"clojure.contrib.str-utils2", + "arglists":[["s", "n"]], + "doc": + "Drops first n characters from s. Returns an empty string if n is\ngreater than the length of s.\n\nNote the argument order is the opposite of clojure.core/drop; this\nis to keep the string as the first argument for use with ->", + "name":"drop"}, + {"source-url": + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L90", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/escape", "namespace":"clojure.contrib.str-utils2", @@ -5175,7 +5184,7 @@ "Returns a new String by applying cmap (a function or a map) to each\ncharacter in s. If cmap returns nil, the original character is\nadded to the output unchanged.", "name":"escape"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L366", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L369", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/get", "namespace":"clojure.contrib.str-utils2", @@ -5183,7 +5192,7 @@ "doc":"Gets the i'th character in string.", "name":"get"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L314", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L317", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/grep", "namespace":"clojure.contrib.str-utils2", @@ -5192,7 +5201,7 @@ "Filters elements of coll by a regular expression. The String\nrepresentation (with str) of each element is tested with re-find.", "name":"grep"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L240", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L243", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/join", "namespace":"clojure.contrib.str-utils2", @@ -5201,7 +5210,7 @@ "Returns a string of all elements in coll, separated by\nseparator. Like Perl's join.", "name":"join"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L345", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L348", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/lower-case", "namespace":"clojure.contrib.str-utils2", @@ -5209,7 +5218,7 @@ "doc":"Converts string to all lower-case.", "name":"lower-case"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L291", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L294", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/ltrim", "namespace":"clojure.contrib.str-utils2", @@ -5217,7 +5226,7 @@ "doc":"Removes whitespace from the left side of string.", "name":"ltrim"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L307", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L310", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/map-str", "namespace":"clojure.contrib.str-utils2", @@ -5226,7 +5235,7 @@ "Apply f to each element of coll, concatenate all results into a\nString.", "name":"map-str"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L320", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L323", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/partial", "namespace":"clojure.contrib.str-utils2", @@ -5235,7 +5244,7 @@ "Like clojure.core/partial for functions that take their primary\nargument first.\n\nTakes a function f and its arguments, NOT INCLUDING the first\nargument. Returns a new function whose first argument will be the\nfirst argument to f.\n\nExample: (str-utils2/partial str-utils2/take 2)\n ;;=> (fn [s] (str-utils2/take s 2))", "name":"partial"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L219", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L222", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/partition", "namespace":"clojure.contrib.str-utils2", @@ -5244,7 +5253,7 @@ "Splits the string into a lazy sequence of substrings, alternating\nbetween substrings that match the patthern and the substrings\nbetween the matches. The sequence always starts with the substring\nbefore the first match, or an empty string if the beginning of the\nstring matches.\n\nFor example: (partition \"abc123def\" #\"[a-z]+\")\nreturns: (\"\" \"abc\" \"123\" \"def\")", "name":"partition"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L145", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L146", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/repeat", "namespace":"clojure.contrib.str-utils2", @@ -5252,7 +5261,7 @@ "doc":"Returns a new String containing s repeated n times.", "name":"repeat"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L155", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L156", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/replace", "namespace":"clojure.contrib.str-utils2", @@ -5261,7 +5270,7 @@ "Replaces all instances of pattern in string with replacement. \n\nAllowed argument types for pattern and replacement are:\n 1. String and String\n 2. Character and Character\n 3. regex Pattern and String\n (Uses java.util.regex.Matcher.replaceAll)\n 4. regex Pattern and function\n (Calls function with re-groups of each match, uses return \n value as replacement.)", "name":"replace"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L190", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L192", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/replace-first", "namespace":"clojure.contrib.str-utils2", @@ -5270,7 +5279,7 @@ "Replaces the first instance of pattern in s with replacement.\n\nAllowed argument types for pattern and replacement are:\n 1. String and String\n 2. regex Pattern and String\n (Uses java.util.regex.Matcher.replaceAll)\n 3. regex Pattern and function", "name":"replace-first"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L150", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L151", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/reverse", "namespace":"clojure.contrib.str-utils2", @@ -5278,7 +5287,7 @@ "doc":"Returns s with its characters reversed.", "name":"reverse"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L296", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L299", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/rtrim", "namespace":"clojure.contrib.str-utils2", @@ -5286,7 +5295,7 @@ "doc":"Removes whitespace from the right side of string.", "name":"rtrim"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L350", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L353", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/split", "namespace":"clojure.contrib.str-utils2", @@ -5295,7 +5304,7 @@ "Splits string on a regular expression. Optional argument limit is\nthe maximum number of splits.", "name":"split"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L301", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L304", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/split-lines", "namespace":"clojure.contrib.str-utils2", @@ -5303,7 +5312,7 @@ "doc":"Splits s on \\n or \\r\\n.", "name":"split-lines"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L264", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L267", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/swap-case", "namespace":"clojure.contrib.str-utils2", @@ -5312,7 +5321,7 @@ "Changes upper case characters to lower case and vice-versa.\nHandles Unicode supplementary characters correctly. Uses the\nlocale-sensitive String.toUpperCase() and String.toLowerCase()\nmethods.", "name":"swap-case"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L138", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L139", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/tail", "namespace":"clojure.contrib.str-utils2", @@ -5320,7 +5329,7 @@ "doc":"Returns the last n characters of s.", "name":"tail"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L107", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L107", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/take", "namespace":"clojure.contrib.str-utils2", @@ -5329,7 +5338,7 @@ "Take first n characters from s, up to the length of s.\n\nNote the argument order is the opposite of clojure.core/take; this\nis to keep the string as the first argument for use with ->", "name":"take"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L356", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L359", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/trim", "namespace":"clojure.contrib.str-utils2", @@ -5337,7 +5346,7 @@ "doc":"Removes whitespace from both ends of string.", "name":"trim"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L340", + "http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L343", "wiki-url": "http://richhickey.github.com/clojure-contrib//str-utils2-api.html#str-utils2/upper-case", "namespace":"clojure.contrib.str-utils2", @@ -1859,7 +1859,7 @@ Some ideas are borrowed from <a href="http://github.com/francoisdevlin/devlinsf-clojure-utils/">http://github.com/francoisdevlin/devlinsf-clojure-utils/</a></pre> Public variables and functions: - <span id="var-link"><a href="str-utils2-api.html#str-utils2/blank?" id="var-tag">blank?</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/butlast" id="var-tag">butlast</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/capitalize" id="var-tag">capitalize</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/chomp" id="var-tag">chomp</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/chop" id="var-tag">chop</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/codepoints" id="var-tag">codepoints</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/contains?" id="var-tag">contains?</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/dochars" id="var-tag">dochars</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/docodepoints" id="var-tag">docodepoints</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/escape" id="var-tag">escape</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/get" id="var-tag">get</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/grep" id="var-tag">grep</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/join" id="var-tag">join</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/lower-case" id="var-tag">lower-case</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/ltrim" id="var-tag">ltrim</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/map-str" id="var-tag">map-str</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/partial" id="var-tag">partial</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/partition" id="var-tag">partition</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/repeat" id="var-tag">repeat</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/replace" id="var-tag">replace</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/replace-first" id="var-tag">replace-first</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/reverse" id="var-tag">reverse</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/rtrim" id="var-tag">rtrim</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/split" id="var-tag">split</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/split-lines" id="var-tag">split-lines</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/swap-case" id="var-tag">swap-case</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/tail" id="var-tag">tail</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/take" id="var-tag">take</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/trim" id="var-tag">trim</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/upper-case" id="var-tag">upper-case</a> </span><br /> + <span id="var-link"><a href="str-utils2-api.html#str-utils2/blank?" id="var-tag">blank?</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/butlast" id="var-tag">butlast</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/capitalize" id="var-tag">capitalize</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/chomp" id="var-tag">chomp</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/chop" id="var-tag">chop</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/codepoints" id="var-tag">codepoints</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/contains?" id="var-tag">contains?</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/dochars" id="var-tag">dochars</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/docodepoints" id="var-tag">docodepoints</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/drop" id="var-tag">drop</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/escape" id="var-tag">escape</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/get" id="var-tag">get</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/grep" id="var-tag">grep</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/join" id="var-tag">join</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/lower-case" id="var-tag">lower-case</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/ltrim" id="var-tag">ltrim</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/map-str" id="var-tag">map-str</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/partial" id="var-tag">partial</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/partition" id="var-tag">partition</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/repeat" id="var-tag">repeat</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/replace" id="var-tag">replace</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/replace-first" id="var-tag">replace-first</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/reverse" id="var-tag">reverse</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/rtrim" id="var-tag">rtrim</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/split" id="var-tag">split</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/split-lines" id="var-tag">split-lines</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/swap-case" id="var-tag">swap-case</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/tail" id="var-tag">tail</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/take" id="var-tag">take</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/trim" id="var-tag">trim</a> </span><span id="var-link"><a href="str-utils2-api.html#str-utils2/upper-case" id="var-tag">upper-case</a> </span><br /> </div><div id="namespace-entry"> <br /> diff --git a/str-utils2-api.html b/str-utils2-api.html index 0e11a2d6..fff760b2 100644 --- a/str-utils2-api.html +++ b/str-utils2-api.html @@ -66,6 +66,8 @@ namespace. </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#str-utils2/docodepoints">docodepoints</a> </div><div style="margin-left: 1em;" class="toc-entry"> + <a href="#str-utils2/drop">drop</a> + </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#str-utils2/escape">escape</a> </div><div style="margin-left: 1em;" class="toc-entry"> <a href="#str-utils2/get">get</a> @@ -145,7 +147,7 @@ Some ideas are borrowed from <pre id="var-usage">Usage: (blank? s) </pre> <pre id="var-docstr">True if s is nil, empty, or contains only whitespace.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L102" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L102" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -158,7 +160,7 @@ if n is greater than the length of s. Note the argument order is the opposite of clojure.core/butlast; this is to keep the string as the first argument for use with -></pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L127" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L128" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -168,7 +170,7 @@ this is to keep the string as the first argument for use with -></pre> </pre> <pre id="var-docstr">Converts first character of the string to upper-case, all other characters to lower-case.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L282" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L285" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -178,7 +180,7 @@ characters to lower-case.</pre> </pre> <pre id="var-docstr">Removes all trailing newline \n or return \r characters from string. Note: String.trim() is similar and faster.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L255" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L258" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -188,7 +190,7 @@ string. Note: String.trim() is similar and faster.</pre> </pre> <pre id="var-docstr">Removes the last character of string, does nothing on a zero-length string.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L246" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L249" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -198,7 +200,7 @@ string.</pre> </pre> <pre id="var-docstr">Returns a sequence of integer Unicode code points in s. Handles Unicode supplementary characters (above U+FFFF) correctly.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L77" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L77" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -207,7 +209,7 @@ Unicode supplementary characters (above U+FFFF) correctly.</pre> <pre id="var-usage">Usage: (contains? s substring) </pre> <pre id="var-docstr">True if s contains the substring.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L361" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L364" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -220,7 +222,7 @@ Unicode supplementary characters (above U+FFFF) correctly.</pre> Repeatedly executes body, with name bound to each character in string. Does NOT handle Unicode supplementary characters (above U+FFFF).</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L37" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L37" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -233,7 +235,20 @@ U+FFFF).</pre> Repeatedly executes body, with name bound to the integer code point of each Unicode character in the string. Handles Unicode supplementary characters (above U+FFFF) correctly.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L53" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L53" id="var-source">Source</a> +</div><div id="var-entry"> + <br /> + <hr /> + <h2 id="str-utils2/drop">drop</h2> + <span id="var-type">function</span><br /> + <pre id="var-usage">Usage: (drop s n) +</pre> + <pre id="var-docstr">Drops first n characters from s. Returns an empty string if n is +greater than the length of s. + +Note the argument order is the opposite of clojure.core/drop; this +is to keep the string as the first argument for use with -></pre> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L117" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -244,7 +259,7 @@ supplementary characters (above U+FFFF) correctly.</pre> <pre id="var-docstr">Returns a new String by applying cmap (a function or a map) to each character in s. If cmap returns nil, the original character is added to the output unchanged.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L90" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L90" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -253,7 +268,7 @@ added to the output unchanged.</pre> <pre id="var-usage">Usage: (get s i) </pre> <pre id="var-docstr">Gets the i'th character in string.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L366" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L369" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -263,7 +278,7 @@ added to the output unchanged.</pre> </pre> <pre id="var-docstr">Filters elements of coll by a regular expression. The String representation (with str) of each element is tested with re-find.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L314" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L317" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -273,7 +288,7 @@ representation (with str) of each element is tested with re-find.</pre> </pre> <pre id="var-docstr">Returns a string of all elements in coll, separated by separator. Like Perl's join.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L240" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L243" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -282,7 +297,7 @@ separator. Like Perl's join.</pre> <pre id="var-usage">Usage: (lower-case s) </pre> <pre id="var-docstr">Converts string to all lower-case.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L345" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L348" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -291,7 +306,7 @@ separator. Like Perl's join.</pre> <pre id="var-usage">Usage: (ltrim s) </pre> <pre id="var-docstr">Removes whitespace from the left side of string.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L291" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L294" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -301,7 +316,7 @@ separator. Like Perl's join.</pre> </pre> <pre id="var-docstr">Apply f to each element of coll, concatenate all results into a String.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L307" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L310" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -318,7 +333,7 @@ first argument to f. Example: (str-utils2/partial str-utils2/take 2) ;;=> (fn [s] (str-utils2/take s 2))</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L320" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L323" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -334,7 +349,7 @@ string matches. For example: (partition "abc123def" #"[a-z]+") returns: ("" "abc" "123" "def")</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L219" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L222" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -343,7 +358,7 @@ returns: ("" "abc" "123" "def")</pre> <pre id="var-usage">Usage: (repeat s n) </pre> <pre id="var-docstr">Returns a new String containing s repeated n times.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L145" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L146" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -361,7 +376,7 @@ Allowed argument types for pattern and replacement are: 4. regex Pattern and function (Calls function with re-groups of each match, uses return value as replacement.)</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L155" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L156" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -376,7 +391,7 @@ Allowed argument types for pattern and replacement are: 2. regex Pattern and String (Uses java.util.regex.Matcher.replaceAll) 3. regex Pattern and function</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L190" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L192" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -385,7 +400,7 @@ Allowed argument types for pattern and replacement are: <pre id="var-usage">Usage: (reverse s) </pre> <pre id="var-docstr">Returns s with its characters reversed.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L150" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L151" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -394,7 +409,7 @@ Allowed argument types for pattern and replacement are: <pre id="var-usage">Usage: (rtrim s) </pre> <pre id="var-docstr">Removes whitespace from the right side of string.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L296" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L299" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -405,7 +420,7 @@ Allowed argument types for pattern and replacement are: </pre> <pre id="var-docstr">Splits string on a regular expression. Optional argument limit is the maximum number of splits.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L350" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L353" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -414,7 +429,7 @@ the maximum number of splits.</pre> <pre id="var-usage">Usage: (split-lines s) </pre> <pre id="var-docstr">Splits s on \n or \r\n.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L301" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L304" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -426,7 +441,7 @@ the maximum number of splits.</pre> Handles Unicode supplementary characters correctly. Uses the locale-sensitive String.toUpperCase() and String.toLowerCase() methods.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L264" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L267" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -435,7 +450,7 @@ methods.</pre> <pre id="var-usage">Usage: (tail s n) </pre> <pre id="var-docstr">Returns the last n characters of s.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L138" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L139" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -447,7 +462,7 @@ methods.</pre> Note the argument order is the opposite of clojure.core/take; this is to keep the string as the first argument for use with -></pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L107" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L107" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -456,7 +471,7 @@ is to keep the string as the first argument for use with -></pre> <pre id="var-usage">Usage: (trim s) </pre> <pre id="var-docstr">Removes whitespace from both ends of string.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L356" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L359" id="var-source">Source</a> </div><div id="var-entry"> <br /> <hr /> @@ -465,7 +480,7 @@ is to keep the string as the first argument for use with -></pre> <pre id="var-usage">Usage: (upper-case s) </pre> <pre id="var-docstr">Converts string to all upper-case.</pre> - <a href="http://github.com/richhickey/clojure-contrib/blob/ef69dc58760232c75b55e91d405116aa5ed03d51/src/clojure/contrib/str_utils2.clj#L340" id="var-source">Source</a> + <a href="http://github.com/richhickey/clojure-contrib/blob/4b4f6ab5bcab58c4219eb50395bd366daea3ecc3/src/clojure/contrib/str_utils2.clj#L343" id="var-source">Source</a> </div> |