如何搜索 Delphi 文档? [英] How can I search for Delphi documentation?

查看:19
本文介绍了如何搜索 Delphi 文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用网络搜索很难找到 Delphi 文档.文档通常远离点击列表的顶部.例如,在 Google 搜索 delphi setlength 会产生以下结果:

指向 Embarcadero 官方文档的第一个点击排在第 8 位,如上图所示的列表底部.但它是 Delphi 2009 文档的链接.理想情况下,我想找到最新版本的文档.

解决方案

您可以导航到 Embarcadero 文档的首页并从那里进行搜索.链接是:

导航有搜索SetLength,结果是:

而这正是我们正在寻找的.

<小时>

有时我仍然从网络搜索开始,因为根据我的经验,一个好的网络搜索引擎可以产生更多相关的结果.因此,以 Google 为例,您可以尝试以下搜索词:

  • site:docwiki.embarcadero.com/Libraries/XE5 SetLength
  • site:docwiki.embarcadero.com/Libraries SetLength
  • site:docwiki.embarcadero.com SetLength

作为捷径,您通常可以通过输入搜索词并添加docwikidelphi 来逃避.这通常足以说服搜索引擎只返回 Embarcadero 的点击率.因此,您可能会搜索:docwiki delphi SetLength 并得到以下结果:

最后一点.如果您发现自己在 Stack Overflow 上写了一个答案,并且想要链接到文档,您还可以使用从 URL 中删除版本的技巧.这样的 URL 被重定向到最新版本.因此,继续使用 SetLength,您可以替换:

http://docwiki.embarcadero.com/Libraries/XE5/en/System.SetLength

http://docwiki.embarcadero.com/Libraries/en/System.SetLength

使用这种方法可以使您的答案更具前瞻性.

It can be hard to find Delphi documentation using web search. Often the documentation is buried far from the top of the list of hits. For instance a Google search for delphi setlength yields this result:

The first hit that points to the official Embarcadero documentation is in 8th place, the bottom of the list as shown above. But it's a link to the documentation for Delphi 2009. Ideally I would like to find documentation for the latest version.

解决方案

You can navigate to the front page of the Embarcadero documentation and search from there. The link is: http://docwiki.embarcadero.com/RADStudio/en/Main_Page

Note that no version is included in the link. If you navigate to that link then the site will re-direct you to a version specific URL for the latest release. In this case, as I write this today, you would be re-directed to: http://docwiki.embarcadero.com/RADStudio/XE5/en/Main_Page

If you wish to search documentation for a specific version, then you can supply that version in the URL.

You can type the search term into the search box at the top-left of the page, as shown in this screen capture:

However, the results are disappointing. Here they are:

Gah! Where's the documentation for the SetLength function?

Better results are obtained if you use the Libraries section of the documentation as your portal. That is found here: http://docwiki.embarcadero.com/Libraries/en/Main_Page

Navigate there are search for SetLength and the results are:

And this is exactly what we are looking for.


Sometimes I still start with a web search because in my experience a good web search engine can produce more relevant results. So, using Google as an example, you might try these search terms:

  • site:docwiki.embarcadero.com/Libraries/XE5 SetLength
  • site:docwiki.embarcadero.com/Libraries SetLength
  • site:docwiki.embarcadero.com SetLength

As a short cut you can usually get away with typing your search term and adding docwiki and delphi. That's usually enough to persuade the search engine to only return Embarcadero hits. So you might search for: docwiki delphi SetLength and get this result:

One final point. If you find yourself writing an answer here on Stack Overflow, and want to link to the documentation, you can also use the trick of removing the version from the URL. Such a URL gets re-directed to the latest version. So, continuing with SetLength, you might replace:

http://docwiki.embarcadero.com/Libraries/XE5/en/System.SetLength

with

http://docwiki.embarcadero.com/Libraries/en/System.SetLength

Using this approach could make your answer more future-proof.

这篇关于如何搜索 Delphi 文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆