This shows you the differences between two versions of the page.
— |
chrq [2006/10/06 19:08] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: chrq.txt,v 1.2 2006/10/06 19:08:28 jnelson Exp $ | ||
+ | ======Synopsis:====== | ||
+ | $[[chrq]](<list of codepoints>) | ||
+ | |||
+ | ======Technical:====== | ||
+ | The [[chrq]] function is much the same as the [[chr]] function, but the | ||
+ | result is filtered through [[ctcp enquoting]]. Even if the input string | ||
+ | contains binary data (including nuls) the output string is safe for assigning | ||
+ | to a variable and sending over irc. | ||
+ | |||
+ | All the normal caveats of [[chr]] apply to [[chrq]]. | ||
+ | |||
+ | ======Examples:====== | ||
+ | <file> | ||
+ | $chrq(3 0 10 65) returns "^C\0\nA" | ||
+ | </file> | ||
+ | |||