thank you for your explinations and for your work with the plugin, its very much appreciated. Ive got one question and one request.
Q: cwb_next_user1 - how does a user define it? I feel silly asking, but im tired today, pardon.
EDIT: FOUND IT, THANKS
request: can you make a cwb_unhex function? the included hex function is useful, but in order to turn hex > regular numbers, I have to do something like this:
$puts(unhex,$pad_right(FF,6,0))
$puts(hex1,$replace($substr($get(unhex),6,6),A,10,B,11,C,12,D,13,E,14,F,15))
$puts(hex2,$mul($replace($substr($get(unhex),5,5),A,10,B,11,C,12,D,13,E,14,F,15),16))
$puts(hex3,$mul($replace($substr($get(unhex),4,4),A,10,B,11,C,12,D,13,E,14,F,15),256))
$puts(hex4,$mul($replace($substr($get(unhex),3,3),A,10,B,11,C,12,D,13,E,14,F,15),4096))
$puts(hex5,$mul($replace($substr($get(unhex),2,2),A,10,B,11,C,12,D,13,E,14,F,15),65536))
$puts(hex6,$mul($replace($substr($get(unhex),1,1),A,10,B,11,C,12,D,13,E,14,F,15),1048576))
$puts(unhex,$add($get(hex1),$get(hex2),$get(hex3),$get(hex4),$get(hex5),$get(hex6)))
$get(unhex) = $hex($get(unhex),)
Sometimes I want to 'unhex' a number so I can use arithmetic functions on it, and I cant do $add(FF,1). But $hex($add($cwb_unhex(FF),1)) would work fine. Also, its useful for unicode characters that are sometimes listed in hex: $char($cwb_unhex(41)) = $char(65) = A
thank you kindly, again, for your time and effort.