[Include] [INC] ctype.inc
#1

About:

ctype.inc is a PAWN version of ctype.h for C language. It includes some basic (but hopefully useful) functions to check information of a character passed through the functions.

Function List:


isalnum(character)Checks if the character is an alphanumeric character.
isalpha(character)Checks if the character is an alphabetical character.
iscntrl(character)Checks if the character is a control / escape code character such as '\n'.
isdigit(character)Checks if the character is a number digit.
isgraph(character)Checks if the character is able to represented graphically.
islower(character)Checks if the character is lowercase.
isprint(character)Checks if the character is a printable character.
ispunct(character)Checks if the character is a punctuation character.
isspace(character)Checks if character is a white space character.
isupper(character)Checks if character is uppercase.
isxdigit(character)Checks if character is a valid hexidecimal character.
cprintinf(character)Prints info of the character to the server window. This function is only included if you have printf defined. printf function is in a_samp.inc.


Notes:

The functions toupper(character) and tolower(character) were not included due to them being able to be found in the core.inc include.

Download:

Reply


Messages In This Thread
[INC] ctype.inc - by Simon - 02.12.2008, 06:29
Re: [INC] ctype.inc - by Mikep - 02.12.2008, 06:59
Re: [INC] ctype.inc - by luigifan9 - 17.05.2010, 19:29
Re: [INC] ctype.inc - by ViruZZzZ_ChiLLL - 17.05.2010, 22:04
Re: [INC] ctype.inc - by luigifan9 - 17.05.2010, 22:36
Re: [INC] ctype.inc - by ViruZZzZ_ChiLLL - 18.05.2010, 00:19
Re: [INC] ctype.inc - by luigifan9 - 18.05.2010, 00:58
Re: [INC] ctype.inc - by Haji - 18.05.2010, 14:30
Re: [INC] ctype.inc - by luigifan9 - 18.05.2010, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)