如何对 Squeak 3.7 图像执行文本搜索?

发布于 2024-10-07 06:11:45 字数 90 浏览 0 评论 0原文

我有一个在 3.7 版本的 Squeak 上运行的图像 - 我想对图像中的所有类、类别和选择器进行字符串和字符串片段的文本搜索。有没有一个内置工具可以用来做这种事情?

I have an image that runs on the 3.7 version of Squeak - I'd like to do a text search for strings and fragments of strings, over all classes, categories and selectors in the image. Is there a built in tool I can use for doing this sort of thing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

为你拒绝所有暧昧 2024-10-14 06:11:45

“包含它的方法源”(由 Alexandre Jasmin 提到)将包括类注释、字符串、选择器和方法源。

如果该字符串可能包含在方法协议名称中,我认为您必须以编程方式进行检查。像这样的东西:

Smalltalk allClasses select: [ :c |
    c organization categories anySatisfy: [: cat |
        '*substring*' match: cat ] ].

"method source containing it" (mentioned by Alexandre Jasmin) will include class comments, strings, selectors, and method source.

If the string might be contained in a method protocol name, I think you'd have to check programmatically. Something like:

Smalltalk allClasses select: [ :c |
    c organization categories anySatisfy: [: cat |
        '*substring*' match: cat ] ].
謌踐踏愛綪 2024-10-14 06:11:45
  1. 选择您要搜索的文本(通常来自浏览器或工作区)。
  2. Shift-黄色 单击文本以显示上下文菜单。

该菜单将包含所选文本字符串的一些高级搜索选项:

  • 包含它的选择器,
  • 包含它的方法字符串
  • ,包含它的方法源
  • ,包含它的类名,包含它的
  • 类注释,包含它
  • 的更改集
  1. Select the text that you want to search for (generally from a browser or workspace).
  2. Shift-Yellow Click on the text to show up a context menu.

That menu will contains among other things some advanced search options for the selected text string:

  • selectors containing it
  • method strings with it
  • method source with it
  • class names containing it
  • class comments with it
  • change sets with it
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文