Boolean URLUtil::IsNetworkUrl( /* [in] */ const String& url) { if (url.IsNullOrEmpty()) { return FALSE; } return IsHttpUrl(url) || IsHttpsUrl(url); }
Boolean URLUtil::IsValidUrl( /* [in] */ const String& url) { if (url.IsNullOrEmpty()) { return FALSE; } return (IsAssetUrl(url) || IsResourceUrl(url) || IsFileUrl(url) || IsAboutUrl(url) || IsHttpUrl(url) || IsHttpsUrl(url) || IsJavaScriptUrl(url) || IsContentUrl(url)); }
//--------------------------------------------------------------------------- void __fastcall TWebHelpSystem::ShowHelp(const UnicodeString AHelpString) { UnicodeString HelpUrl; if (IsHttpUrl(AHelpString)) { HelpUrl = AHelpString; } else { // see also AppendUrlParams UnicodeString HelpString = AHelpString; const wchar_t FragmentSeparator = L'#'; UnicodeString HelpPath = CutToChar(HelpString, FragmentSeparator, false); HelpUrl = FMTLOAD(DOCUMENTATION_KEYWORD_URL2, (HelpPath, FVersion, FLanguage)); AddToList(HelpUrl, HelpString, FragmentSeparator); } OpenBrowser(HelpUrl); }