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

Determines if a byte values contain only Letters, Digits, or Hyphens in the US-ASCII character set.

File
function IsASCIILDH(
    const ABytes: TIdBytes
): Boolean; overload;
Parameters 
Description 
ABytes 
Values to check for Letter, Digit, or Hyphen compliance. 

Boolean - True when the byte values contain only Letters, Digits, or Hyphens.

IsASCIILDH is an overloaded Boolean function used to determine if the byte values in ABytes contains only Letters, Digits, or Hyphens characters from the US-ASCII character set. 

IsASCIILDH returns True when all values in Abytes can be represented using characters in the following ranges: 

 

Hex 
Decimal 
Characters 
$2D 
45 
'-' 
$30 .. $39 
48 .. 57 
'0' .. '9' 
$41 .. $5A 
59 .. 90 
'A' .. 'Z' 
$61 .. $7A 
97 .. 122 
'a' .. 'z' 

 

Use the overloaded IsASCIILDH function to examine a single byte value for Letter, Digit, and Hyphen compliance.

IsASCIILDH

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