Internet Direct (Indy)
Home
PreviousUpNext
IsASCII Function

Determines if byte values can be represented in the US-ASCII character set.

Pascal
function IsASCII(
    const ABytes: TIdBytes
): Boolean; overload;
Parameters 
Description 
ABytes 
Values to be examined. 

Boolean - True when all bytes are <= 7F Hex.

IsASCII is a Boolean function used to determine if all byte values in ABytes can be represented using characters from the US-ASCII character set. 

IsASCII returns True when all bytes in ABytes are less than or equal to the hex value 7F (Decimal 127). 

Use the overloaded IsASCII function to determine if a single byte value can be represented in the US-ASCII character set.

IsASCII

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.