Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>isascii() - check if characters in string are ascii</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     isascii() - check if characters in string are ascii
            isnum() - check if characters in string are numbers
            isprint() - check if characters are printable
            isspace() - check if characters are white space
            iscntrl() - check if characters are control characters
            isdigit() - check if characters are numeric
            isxdigit() - check if characters are hex characters
            isupper() - check if characters are uppercase
            islower() - check if characters are lowercase
            isalpha() - check if characters are alpha characters

  Usage:    <logical> = isxxxxx(<string>,[<num>])
  Params:   character <string> - character(s) to check
            integer <num> - the number of characters to check
            starting from the first character - optional, if the
            number of characters is left off, than the first
            character is checked. If it is longer than the length of
            the string, the entire string is checked. If it is 0,
            the entire string is checked as well.

  Returns:  .T. if the first <num> character(s) in <string> are in
            the right category, .F. if not.

 ---------------------------------- Example ---------------------------------

                 ? isascii("ABC",3)  && prints .T.
                 ? isdigit("9")      &&prints .T.
                 ? isspace(" H")     && prints .F.
                 ? isspace("   ",3)  && prints .T.

  Note:     iscntrl() - Tests for (chr(0)-chr(31)) or chr(127)
            isdigit() - Tests for digits (0 - 9)
            isnum()   - Tests if character is numeric (0-9), (+.-)
            isprint() - Tests for printable chars (chr(32)-chr(126))
            ispunct() - Tests for punctuation characters
            isspace() - Tests white space, (chr(9)-chr(13)), chr(32)
            isxdigit()- Tests for hexadecimal digit (A-F, a-f, 0-9)
            isalpha() - Tests for alpha characters (A-Z, a-z)
            isupper() - Tests for uppercase characters (A-Z)
            islower() - Tests for lowercase characters (a-z)


See Also: _upper() _lower()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson