Exemplo n.º 1
0
Boolean URLUtil::IsNetworkUrl(
    /* [in] */ const String& url)
{
    if (url.IsNullOrEmpty()) {
        return FALSE;
    }
    return IsHttpUrl(url) || IsHttpsUrl(url);
}
Exemplo n.º 2
0
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));
}
Exemplo n.º 3
0
//---------------------------------------------------------------------------
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);
}