Click here to Skip to main content
15,914,488 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
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!
Posted
Comments
Sergey Alexandrovich Kryukov 16-Sep-11 17:16pm    
How you define a string? A whole C++ file content is string, a reserved word is a string, an identifier. What do you want to do with expression? Define you tokenization, that's it.
--SA

 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900