xHarbour Reference Documentation > Function Reference |
Checks if the first character of a string is a 7-bit graphical ASCII character.
IsGraph( <cString> ) --> lIs7BitGraphicalChar
The function returns .T. (true) when the leftmost character of a string belongs to the 7-bit ASCII character set with a graphical representation, otherwise .F. (false).
The function is used to check if a string begins with a character that belongs to the 7-bit ASCII character set that has a grahpical representation (ASCII values 33 - 126). It returns .T. (true) when the ASCII value of the first character is within the range of 33 to 126, and .F. (false) when it begins with any other character.
See also: | IsAlNum(), IsAlpha(), IsAscii(), IsCntrl(), IsDigit(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), IsXDigit(), Lower(), Upper() |
Category: | Character functions , xHarbour extensions |
Source: | rtl\is.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example lists all 7-bit ASCII values with a graphical // representation to a file PROCEDURE Main LOCAL i SET ALTERNATE TO IsGraph.txt SET ALTERNATE ON FOR i := 0 TO 255 IF IsGraph( Chr(i) ) ?? Chr(i), i ? ENDIF NEXT RETURN
http://www.xHarbour.com