michaeljoelphillips/ctags-php
Composer 安装命令:
composer require michaeljoelphillips/ctags-php
包简介
Reads tag files generated by universal ctags
关键字:
README 文档
README
This library provides support for reading tag files generated by various versions of Ctags, including Universal and Exuberant Ctags.
Installation
composer require michaeljoelphillips/ctags-php
Usage
You can filter tags using a predicate function, match tags similar to
readtags, or list all tags. The result for each is a Generator
containing CTags\Tag objects:
use CTags\Reader; use CTags\Tag; use Generator; $reader = Reader::fromFile('tags', true); $reader->listAll(); $reader->match('MyClass'); $reader->partialMatch('My'); $reader->filter(static function (Tag $tag) { return $tag->name === 'MyClass' && $tag->fields['kind'] === 'c'; });
If reading the Universal Ctags extension fields is not necessary, you can exclude them for better performance:
use CTags\Reader; $reader = Reader::fromFile('tags', false);
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-18