Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
"isxdigit" pops a string off the top of the stack and checks whether every character it contains is a hexadecimal digit ("0" to "9", "A" to "F" or "a" to "f"). 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" isxdigit println # -- prints: 0 "1234" isxdigit println # -- prints: 1 "COF90" isxdigit println # -- prints: 0 isxdigit( "981ED" ) println # -- prints: 1 isxdigit( "123" "DEF" ) println # -- error! too many arguments 239 isxdigit println # -- error! not a string
isalnum, isalpha, isascii, iscntrl, isdigit, iseoln, isgraph, islower, isprint, ispunct, isspace, isupper
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]