C++
virtual ACDBCORE2D_PORT bool isURL( const ACHAR * pszURL ) const;
Description
This method determines whether the string pszURL refers to a valid URL; returns Adesk::kTrue if it is and Adesk::kFalse otherwise.
The definition of a 'valid' URL is application-dependent, in that you may not be interested in supporting all Internet protocols. For instance, an application that attempts to connect users to Web sites would probably not need to provide access to FTP sites. In this hypothetical application, an Adesk::kFalse value would be returned if a URL that begins with something other than 'http://' was entered.
The AcadHostApplicationServices override of this method supports FTP, HTTP, HTTPS, and FILE protocols. Some additional intelligence has been built in to recognize 'smart' URLs, that is, ones that don't specify the protocol, such as www.autodesk.com or ftp.autodesk.com.
Parameters
Parameters | Description |
---|---|
pszURL | Input string to be evaluated |