在cscope中如何搜索带有句点的字符串?

时间:2014-01-17 09:30:05

标签: ctags cscope

在cscope中如何搜索带有句点的字符串?例如。我有一条线

.mount = testmount

在我的代码中,但如果我尝试搜索C符号甚至文本字符串.mount,我会得到包含单词mount的每一行。使用反斜杠作为转义字符似乎也不起作用。

1 个答案:

答案 0 :(得分:1)

如果搜索字符串具有句点,则搜索egrep模式而不是文本或符号,因为句点是搜索egrep模式和文件的有效输入,但不是搜索符号或文本。

启动cscope时,会显示以下选项。选择"找到这个egrep模式:"。

Find this C symbol:
Find this global definition:
Find functions called by this function:
Find functions calling this function:
Find this text string:
Change this text string:
Find this egrep pattern:.mount
Find this file:
Find files:
相关问题