Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
"iscntrl" pops a single string off the stack and checks whether every character it contains is an ASCII control character (characters 0x00 to 0x1F and 0x7F). If so: 1 (true) is pushed back onto the stack, otherwise 0 is pushed back.
As a special case: if the string is empty, the return is 0.
Example:
"Hello" iscntrl println # -- prints: 1 chr(15) iscntrl println # -- prints: 1 iscntrl( " \n" ) println # -- prints: 0 iscntrl( " " "DEF" ) println # -- error! too many arguments 239 iscntrl println # -- error! not a string
isalnum, isalpha, isascii, isdigit, iseoln, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]