如何查找字符串文字 [英] How To Find String Literals

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

问题描述

作为翻译的前提,我试图确保我们所有的字符串都在字符串表中.

有人知道/有正则表达式在VS2010中查找字符串吗? (是否用引号?)最好排除include语句和(C ++)注释.

谢谢!

As a precursor to translation, I''m trying to make sure all our strings are in the string table.

Does anyone know / have a regular expression to find strings in VS2010? (Via quotes?) Preferably excluding include statements and (C++) comments.

Thanks!

推荐答案

是.

使用方法正则表达式来查找和替换Visual Studio C ++项目中的字符串文字 [
Yes.

How to use regular expressions to find and replace string literals in your Visual Studio C++ Projects[^]

Best Wishes,
-David Delaune


具体的常规异常并不是某人拥有的东西.这是必须完成的任务.

不,如果需要认真的解析器,他们将无法为您提供帮助.我想对C ++代码进行解析对吗?
您将需要学习此领域.从这里开始:
http://en.wikipedia.org/wiki/Parsing [ http://en.wikipedia.org/wiki/Category:Parsing_algorithms [ http://en.wikipedia.org/wiki/Parsing_expression_grammar [
Concrete regular exceptions is not something to be known to be in someone''s possession. This is something to be build to the required task.

No, they won''t help you where a serious parser is required. Do I understand you right that you want to parse C++ code?
You will need to learn this field. Start here:
http://en.wikipedia.org/wiki/Parsing[^],
http://en.wikipedia.org/wiki/Category:Parsing_algorithms[^],
http://en.wikipedia.org/wiki/Parsing_expression_grammar[^].


—SA


这篇关于如何查找字符串文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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