4b: Text Processing
+at
+atBasic printing.
Container core for basic $atom printing functions.
Note that these are largely deprecated, using outdated syntax, character mappings and encodings, and should generally not be used.
Accepts
.a is a @.
Source
++ at
|_ a=@+r:at
+r:atPrint term, number or hex.
If .a is composed of the letters a through z and -, print as @tas syntax. If .a is an $atom of two bytes or less, print as an integer with comma-separated thousands. Otherwise, print .a as @ux syntax.
Accepts
.a is a @, and is the sample of +at.
Produces
A $tape.
Source
Examples
+rf:at
+rf:atPrint loobean.
If .a is a loobean, print as |/&, otherwise crash.
Accepts
.a is a @, and is the sample of +at.
Produces
A $tape.
Source
Examples
+rn:at
+rn:atPrint null.
If .a is null, print ~, otherwise crash.
Accepts
.a is a @, and is the sample of +at.
Produces
A $tape.
Source
Examples
+rt:at
+rt:atPrint cord, including escape characters.
Print .a with $cord syntax, including escape characters.
Accepts
.a is a @, and the sample of +at.
Produces
A $tape.
Source
Examples
+rta:at
+rta:atSame as +rt:at.
Source
+rtam:at
+rtam:atPrint cord with @tas syntax.
Treat .a as $cord, print it with % prefix.
Accepts
.a is a @, and is the sample of +at.
Produces
A $tape.
Source
Examples
+rub:at
+rub:atPrint binary.
Print .a as @ub syntax, except with - separators rather than . separators.
Accepts
.a is a @, and is the sample of +at.
Produces
A $tape.
Source
Examples
+rud:at
+rud:atPrint $atom as integer.
Print $atom .a as an integer, with commas separating thousands.
Accepts
.a is a @.
Produces
A $tape.
Source
Examples
+rum:at
+rum:atPrint base-n.
Print .a as base .b with suffix .c and using gate .d to convert blocks to characters. Each set of four characters will be separated by -, except for base 10 which will be printed with commas separating thousands.
Accepts
.ais a@, and is the sample of+at..bis a@, denoting the the base..cis a$tape, and will be appended to the end of the result..dis a$gatethat takes@and produces@.
Produces
A $tape.
Source
Examples
+rup:at
+rup:atPrint @p (outdated).
Print .a as a @p, but with outdated syntax and number<->syllable mapping. This function almost certainly should not be used.
Accepts
.a is a @.
Produces
A $tape.
Source
Examples
+ruv:at
+ruv:atPrint base-64.
Print .a as outdated base-64 syntax, with 0v rather than 0w prefix, different character mappings and separators.
Accepts
.a is a @, and is the sample of +at.
Produces
A $tape.
Source
Examples
Note this is how it should be rendered:
+rux:at
+rux:atPrint hexadecimal.
Print .a as @ux except with - separators rather than .s.
Accepts
.a is a @, and is the sample of +at.
Produces
A $tape.
Source
Examples
+cass
+cassTo lowercase.
Turn all occurences of uppercase letters in any $tape into lowercase letters. Returns a $tape.
Accepts
.vib is a $tape.
Produces
A $tape.
Source
Examples
+crip
+cripTape to cord.
Produce a $cord from a $tape.
Accepts
.a is a $tape.
Produces
A $cord.
Source
Examples
+cuss
+cussTo uppercase.
Turn all occurences of lowercase letters in any $tape into uppercase letters. Returns a $tape.
Accepts
.vib is a $tape.
Produces
A $tape.
Source
Examples
+mesc
+mescEscape special chars.
Escape special characters.
Accepts
.vib is a $tape.
Produces
A $tape.
Source
Examples
+runt
+runtPrepend n times.
Add .a repetitions of character .b to the head of $tape .c.
Accepts
.a and .b are $atoms.
.c is a $tape.
Produces
A $tape.
Source
Examples
+sand
+sandSoft-cast by aura.
Check characters in .b are valid for aura .a. Produce a +unit of .a if valid and a null +unit if not. Takes .a and produces a gate that takes .b.
Accepts
.a is a @ta, and specifies the aura like %tas or %ta.
.b is an $atom.
Produces
A (unit @).
Source
Examples
+sane
+saneCheck aura validity.
Check validity of .a by aura .b. Takes .b and produces a gate that takes .a.
Accepts
.a is a @ta, and specifies the aura like %tas or %ta.
.b is an $atom.
Produces
A $flag.
Source
Examples
+taft
+taftUTF-8 to UTF-32.
Convert $cord .a to a UTF-32 @c.
Accepts
.a is a @t.
Produces
A @c.
Source
Examples
+teff
+teffUTF-8 Length.
Produces the number of utf8 bytes of .a, a single @t character. If .a contains more than one character, it will produce the byte-length of the first one.
Accepts
.a is a @t.
Produces
An $atom.
Source
Examples
+trim
+trimTape split.
Split first .a characters off $tape .b.
Accepts
.a is an $atom.
.b is a $tape.
Produces
A cell of $tapes, .p and .q.
Source
Examples
+trip
+tripCord to tape.
Produce a $tape from $cord .a.
Accepts
.a is an $atom.
Produces
A $tape.
Source
Examples
+tuba
+tubaUTF-8 tape to UTF-32 tape.
Convert $tape to a +list of codepoints (@c).
Accepts
.a is a $tape.
Produces
A (list @c).
Source
Examples
+tufa
+tufaUTF-32 to UTF-8 tape.
Wrap a +list of UTF-32 codepoints into a UTF-8 $tape.
Accepts
.a is a (list @c).
Produces
A $tape.
Source
Examples
+tuft
+tuftUTF-32 to UTF-8.
Convert @c to $cord.
Accepts
.a is a @c.
Produces
A $cord.
Source
Examples
+wack
+wackKnot escape.
Escape $knot ~ as ~~ and _ as ~-. Used for printing.
Accepts
.a is a $knot.
Produces
A $knot.
Source
Examples
+wick
+wickKnot unescape.
Unescape $knot ~~ as ~ and ~- as _. Produces a +unit, which is null if the $knot contains unescaped ~ characters.
Accepts
.a is a an $atom.
Produces
A (unit @ta).
Source
Examples
+woad
+woadUnescape cord.
Unescape $knot-encoded $cord.
Accepts
.a is a @ta.
Produces
A $cord.
Source
Examples
+wood
+woodEscape cord.
Escape $cord .a so it can be encoded in a $knot.
Accepts
.a is a $cord.
Produces
A $knot.
Source
Examples
Last updated