ascii
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | ascii [2006/08/29 20:58] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: ascii.txt,v 1.2 2006/08/29 20:58:41 jnelson Exp $ | ||
| + | ======Synopsis: | ||
| + | $[[ascii]](< | ||
| + | |||
| + | ======Technical: | ||
| + | The [[ascii]] function converts a sequence of characters into a word list | ||
| + | of codepoints. | ||
| + | the codepoints are 0 to 255 (strictly 1 byte per codepoint). | ||
| + | future epic supports UTF8 or something like that, codepoints greater than | ||
| + | 255 might be returned. | ||
| + | |||
| + | You can use the [[chr]] function to convert a word list of codepoints into | ||
| + | a sequence of characters. | ||
| + | |||
| + | By definition, the [[ascii]] and [[chr]] functions are symmetrically | ||
| + | reverse operations of each other. | ||
| + | |||
| + | ======Examples: | ||
| + | < | ||
| + | /* assume iso8859-1 character set */ | ||
| + | $ascii(abcABC) | ||
| + | $chr($ascii(abcABC)) | ||
| + | </ | ||
| + | |||
| + | ======Other Notes: | ||
| + | Some characters with the high bit set will return negative numeric | ||
| + | values from $__ascii__(). | ||
| + | positive equivalent. | ||
| + | |||
ascii.txt · Last modified: 2006/08/29 20:58 by 127.0.0.1
