编程语言

img masterz

Use Ultraedit to extract variable declaration

发表于2004/10/3 16:41:00  885人阅读

if we have to define quite a number of constants, or global variables, it would be easier to use ultraedit to extract variable declaration from variable definitions. copy variable definitions to ultraedit, eg, copy the following to ultraedit: LPCTSTR aaa = _T("This"); LPCTSTR aa2 = _T("contributed"); LPCTSTR aa2 = _T("by www.fruitfruit.com"); choose menu of ultraedit Search->Replace, Find What: %^(*^)=^(*^); Replace With: extern ^1; select "Regular Expression" select "Replace All is From Top of File" Replace Where: Current File hit button "Replace All"

Other Visual Studio related regex is posted here: http://onegazhang.spaces.live.com/blog/cns!D5E642BC862BA286!729.entry

 

阅读全文
0 0

相关文章推荐

img
取 消
img