原创  Use Ultraedit to extract variable declaration 收藏

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

发表于 @ 2004年10月03日 16:41:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:some collected macros for C++  | 新一篇:Zip package support in C++

  • 发表评论
  • 评论内容:
  •  
Copyright © masterz
Powered by CSDN Blog