Topic Path: Symbol Reference > Functions > IsASCII Function (TIdBytes)
ContentsIndexHome
PreviousUpNext
IsASCII Function

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

File
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

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.