| Function: cap | Top | Globals Index | Next |
|
syntax: cap <str-str> Capitalize the first letters of a string. |
| Function: capitalize | Top | Globals Index | Back | Next |
|
syntax: capitalize <str-block-str> description: Capitalize a word or a block of words Refinement: (title) First force to lowercase |
| Function: chomp | Top | Globals Index | Back | Next |
|
syntax: chomp <str> <str-substr> Remove a substring. Refinement: /right - Remove at beginning Refinement: /left - Remove at end Refinement: /first - Remove first occurrence only Refinement: /last - Remove last occurrence only Refinement: /all - Remove all occurrences only |
| Function: chompw | Top | Globals Index | Back | Next |
|
syntax: chompw <str-src> <str-target> description: Remove a substring if found based on first character. FirstChar: "^^" remove from front "$" - from tail "*" from any position |
| Function: columnize | Top | Globals Index | Back | Next |
|
syntax: columnize <block> <int-cols> Pretty-print a block of strings on even columns. refinement: /with <sep> Customize seperator. |
| Function: copy-to | Top | Globals Index | Back | Next |
|
syntax: copy-to <str> <marker> Copy a string to a marker |
| Function: count-leading | Top | Globals Index | Back | Next |
|
syntax: count-leading <string> <chars> description: Count matches of chars in string until match fails. |
| Function: cut | Top | Globals Index | Back | Next |
|
syntax: cut <block-or-string> <int-pos> description: Remove and return value(s) from inside of series Refinement: /part <int-partial> override default of 1 Arg: pos - From where to remove. |
| Function: end? | Top | Globals Index | Back | Next |
|
syntax: end? <string> <sub-string> - Test for location of sub at end of str |
| Function: esc | Top | Globals Index | Back | Next |
|
syntax: esc <any-type> If string, escape mysql special chars. |
| Function: fill | Top | Globals Index | Back | Next |
|
syntax: fill <string> <int-width> <str-char> <login-left-or-right> description: Pad string with chars on the left or right, to fill a field to the specified width. The string is never truncated. |
| Function: find-any | Top | Globals Index | Back | Next |
|
syntax: find-any <string> <block-of-substrings> description: Search string for all occurences of substrings in second block return: Block of matches |
| Function: front? | Top | Globals Index | Back | Next |
|
syntax: front? <string> <sub-string> - Test for location of sub at start of str |
| Function: invalid-mysql | Top | Globals Index | Back | Next |
|
syntax: invalid-mysql <str-str> description: Test a string to see if it a valid mysql name. Return none if valid, unacceptable characters if invalid. |
| Function: is-mysql | Top | Globals Index | Back | Next |
|
syntax: is-mysql <str-str> description: Test a string to see if it a valid mysql name. Raise exception if invalid |
| Function: keep | Top | Globals Index | Back | Next |
|
syntax: keep <string> <str-char-start> <str-char-stop> description: Returns block of strings found between start and stop delimiters. All else is discarded refinement: /with Substrings found are rejoined with start and stop. refinement: /extra <str-addition> For each substring, add an additional string. example: keep "name (not here) tim" "(" ")" => ["not here"] example: keep/with "name (not here) tim" "(" ")" => ["(not here)"] example: keep/with/extra "name (not here) tim" "(" ")" "**" => ["(not here)" "**"] |
| Function: keep-some | Top | Globals Index | Back | Next |
|
syntax: keep-some <string> <string-wanted> description: Remove all characters not in wanted from string |
| Function: left | Top | Globals Index | Back | Next |
|
syntax: left <S-series> <int-len> description: Return first part of series. Determined by len. |
| Function: lfill | Top | Globals Index | Back | Next |
|
syntax: lfill <string> <chars> Pad string S with chars on the left, to fill a field to the specified width. Do not truncate. |
| Function: make-nested | Top | Globals Index | Back | Next |
|
syntax: make-nested <int-size-of-outer-block> <int-size-inner-blocks> description: Initialize a series of nested blocks. |
| Function: make-words | Top | Globals Index | Back | Next |
|
syntax: make-words <str> Returns block delimited by whitespace in str. note: Retains imbedded quotation marks. syntax: make-words <string> Parses string on white-space, retains quotation marks. |
| Function: make-words | Top | Globals Index | Back | Next |
|
syntax: make-words <str> Returns block delimited by whitespace in str. note: Retains imbedded quotation marks. syntax: make-words <string> Parses string on white-space, retains quotation marks. |
| Function: max-words | Top | Globals Index | Back | Next |
|
syntax: max-words <string> <int-max-word> Description: Limits a string to max number of words |
| Function: msg-box | Top | Globals Index | Back | Next |
|
syntax: msg-box <str-msg> <str-boundary> <str-delim> description: Create a boxed message for a console session. example: msg-box "hello" "-" "*" "---------" "* hello *" "---------" |
| Function: mult | Top | Globals Index | Back | Next |
|
syntax: mult <series> <int> Multiply (duplicate) a series by an integer example: mult ["*"] 8 => ["*" "*" "*" "*" "*" "*" "*" "*"] |
| Function: mysql-clean | Top | Globals Index | Back | Next |
|
syntax: mysql-clean <str-str> description: remove from str any characters considered illegal by mysql |
| Function: nbsp | Top | Globals Index | Back | Next |
|
syntax: nbsp <int-n> returns string with n number of non-breaking spaces. |
| Function: nnl | Top | Globals Index | Back | Next |
|
syntax: nnl <string> Remove newline at end of string. |
| Function: overwrite | Top | Globals Index | Back | Next |
|
syntax: overwrite <string> <string-subs> <int-start> description: Overwrite target with subs, beginning at start. Note: start cannot be past the end of target. |
| Function: overwrites | Top | Globals Index | Back | Next |
|
syntax: overwrites do overwrite multiple times. |
| Function: pad | Top | Globals Index | Back | Next |
|
syntax: pad <int-size> <char-str-val> Create string initalized to same chars or strings. |
| Function: parse-float | Top | Globals Index | Back | Next |
|
syntax: parse-float <string> Find the first float in a string. refinement: /signed accept a minus |
| Function: parse-int | Top | Globals Index | Back | Next |
|
syntax: parse-int <string> Find the first integer in a string. refinement: /signed accept a minus |
| Function: parse-on | Top | Globals Index | Back | Next |
|
syntax: parse-on <string> <tag-or-string-start> <tag-or-string-stop> description: Parses a string delimited by start and stop. Output is series of blocks each consisting of two elements. Element/1 is a marker - default is is 1 or none. Element/2 is a substring. Substrings bounded by start and stop are proceeded by 1, substrings not bounded are proceeded by none. refinement: /with <any-type-for-bound> <any-type-for-unbound> Custom boundaries. example: parse-on "Hello: <code>print 4 - 3</code> " <code> </code> output: ==>> [[none "Hello: "] [1 "print 4 - 3"]] Blocks beginning can be evaluated as in if 1 = blk/1[do next blk] |
| Function: parse-set | Top | Globals Index | Back | Next |
|
syntax: parse-set <string> <str-chars> description: Parse the first set of characters from a string. Begin with first match. Stop when no match |
| Function: pick | Top | Globals Index | Back | Next |
|
syntax: pick <series> <int-index> Rewrite of native pick description: Returns the value at the specified position in a series. Note: Negative index references from end. example: pick [1 2 3] -1 => 3 |
| Function: picks | Top | Globals Index | Back | Next |
|
syntax: picks <series> <block-of-indexes> description: Returns the values at the specified positions in the series. |
| Function: print-to | Top | Globals Index | Back | Next |
|
syntax: print-to <str> <str-marker> Refinement: (port) option port to write to |
| Function: printf | Top | Globals Index | Back | Next |
|
syntax: printf <str> <blk-subs> Refinement: (/with) <str-token> Description: Replace all occurances of <token> with first member of reference to <subs>. Increment subs index after each replacement, wrapping back to head, if necessary. Default token value is "%s" reference: (/with <token>) Custom token |
| Function: prinx | Top | Globals Index | Back | Next |
|
syntax: prinx <str> <int-reps> prin S reps number of times refinement: /only Use print instead of prin |
| Function: pull-some | Top | Globals Index | Back | Next |
|
syntax: pull-some <string> <string-unwanted> description: Remove all characters found in unwanted from string |
| Function: randAlphaNum | Top | Globals Index | Back | Next |
|
syntax: randAlphaNum <int-len> len random characters chosen from the alphanumeric set |
| Function: random-string | Top | Globals Index | Back | Next |
|
syntax: random-string <str-chars> <int-len> Description: Returns returns string of len characters chosen from chars |
| Function: remove-all | Top | Globals Index | Back | Next |
|
syntax: remove-all <string> <block-or-str-subs> description: remove all substrings in subs from str |
| Function: rephrase | Top | Globals Index | Back | Next |
|
syntax: rephrase <string> <int-limit> Description: Returns a shortened phrase with no more words than limit. Note: If original number of words is greater than limit, prepend with ...' |
| Function: requote | Top | Globals Index | Back | Next |
|
syntax: requote <string> Returns string with literal double quotes |
| Function: rfill | Top | Globals Index | Back | Next |
|
syntax: rfill <string> <chars> Pad string S with chars on the right, to fill a field to the specified width. Do not truncate. |
| Function: Right | Top | Globals Index | Back | Next |
|
syntax: Right <S-series> <int-len> description: Return last part of series. Determined by len. |
| Function: sift | Top | Globals Index | Back | Next |
|
syntax: sift <string> <str-start> <str-stop> <any-outer-mark> <any-inner-mark> description: Seperates text between <start> and <stop> delimiters (inner text) from other text. description: sift "abc@cde*fgh" "@" "*" 1 2 => [[1 "abc"] [2 "cde"] [1 "fgh"]] |
| Function: slices | Top | Globals Index | Back | Next |
|
syntax: slices <series> <block-of-ints-endpoints> description: Return a block of slices of series. Note: Each endpoint measures from the previous |
| Function: split | Top | Globals Index | Back | Next |
|
syntax: split <string> <str-char-sep> description: Converts string to block delimited by <sep>. Note: If <sep> at end, append "", if <sep> at start, insert <sep> Refinement: /with Include <sep> with output |
| Function: split-on | Top | Globals Index | Back | Next |
|
syntax: split-on <str> <str-char-sep> Splits string on first occurrence of sep |
| Function: splitc | Top | Globals Index | Back | Next |
|
syntax: splitc <str> <str-chars> Split a string on any number of single character delimiters |
| Function: splits | Top | Globals Index | Back | Next |
|
syntax: splits <string> seps<block-or-string> Parse str on seps - multiple delimiters. |
| Function: sql-quote | Top | Globals Index | Back | Next |
|
syntax: sql-quote <str-str> Return <str> with mysql special characters escaped see: http://www.mysql.com/doc/en/String_syntax.html |
| Function: strip | Top | Globals Index | Back | Next |
|
syntax: strip <string> <unwanted-chars> description: Create string from S with leading/trailing chars removed refinement: /end Remove from end only /front remove from front only |
| Function: strs | Top | Globals Index | Back | Next |
|
syntax: strs <str-substr> <int-iterations> description: Create a string with n iterations of substring example: strs "hi " 8 => "hi hi hi hi hi hi hi hi " |
| Function: substr | Top | Globals Index | Back | Next |
|
syntax: substr <S-series> <int-skipped> <int-len> description: Return subset of a series. Original value is unchanged. arg: <int-start> position to start at arg: <int-len> Amount to copy. Ignore overrun. |
| Function: substrings | Top | Globals Index | Back | Next |
|
syntax: substrings <series-S> <block-segment> description: Return block of substrings. arg: <nested-block-segments> Inner blocks are begin points and lengths. |
| Function: take | Top | Globals Index | Back | Next |
|
syntax: take <string> <str-start> <str-stop> description: Removes text between start and stop delimiters refinement: /less Retain delimiters example: take "name (not here) tim" "(" ")" => "name tim" example: take/less "name (not here) tim" "(" ")" => "name () tim" |
| Function: to-title | Top | Globals Index | Back | Next |
|
syntax: to-title <str-s> description: Force a string to lowercase with first character uppercase. |
| Function: truncate | Top | Globals Index | Back | Next |
|
syntax: truncate <series> <int-maxlen> Insure that series is no longer than length |
| Function: un-esc | Top | Globals Index | Back | Next |
|
syntax: un-esc <string> Returns string with mysql special characters un-escaped |
| Function: un-esc-blk | Top | Globals Index | Back | Next |
|
syntax: un-esc-blk <block> Returns block with string items un-esc'd see http://www.mysql.com/doc/en/String_syntax.html for escaping mysql special characters |
| Function: unform | Top | Globals Index | Back | Next |
|
syntax: unform <str> Parse a string on spaces. Returns block Note!: no empty string returned in block |
| Function: word-wrap | Top | Globals Index | Back | Next |
|
syntax: word-wrap <string> <int-width> description: returns a block of space-delimited strings with break tags or newlines inserted after <width> is reached. refinement: /H Use html break tags and escape characters. |
| Function: zfill | Top | Globals Index | Back |
|
syntax: zfill <string> <width> description: Pad string S with zeros on the left, to fill a field to the specified width. The string S is never truncated. |