Indy 9 | Content | Index | Reference

IsTopDomain
See Also, Unit: IdGlobal
Checks an address for the presence of a top-level domain name.

    function IsTopDomain(const AStr: string): Boolean;

Unit
IdGlobal
Parameters
S
Address to be examined.
Return Value
Boolean - True when the address is a top-level domain name.
Description
IsTopDomain is a Boolean function that indicates when the value in S represents a top-level domain name. IsTopDomain returns True when the value in S ends with a value recognized as a TLD (Top-Level Domain). For example: COM, ORG, GOV, and EDU. IsTopDomain can also return true when the value in S ends with a country-level domain name such as COM.UK, COM.DE, etc.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.