02.12.2008, 06:29
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:
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: