Use UltraEdit to Extract Variable Declaration

xiaoxiao2021-03-06  53

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 ( " "); 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 Regex Is posted here: http://onegazhang.spaces.live.com/blog/cns !d5e642bc862ba286 !729.entry

转载请注明原文地址:https://www.9cbs.com/read-110772.html

New Post(0)