mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 20:18:17 +03:00
added regexes for easy management of classes
This commit is contained in:
parent
de92c91c31
commit
e70a1930bd
2 changed files with 18 additions and 0 deletions
3
ida/regexes/def_to_constexpr.txt
Normal file
3
ida/regexes/def_to_constexpr.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#define[ \s]*([A-Za-z_0-9]*)[\s]*(\(.*\)|[0-9xa-f\.\-]*)
|
||||||
|
-> static constexpr unsigned int $1 = $2;
|
||||||
|
|
15
ida/regexes/regexes.txt
Normal file
15
ida/regexes/regexes.txt
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
== Remove comments from class ==
|
||||||
|
- Find :
|
||||||
|
- Replace : /\* .*? \*/
|
||||||
|
|
||||||
|
== Remove class name from class ==
|
||||||
|
- Find :
|
||||||
|
- Replace : class .+?::
|
||||||
|
|
||||||
|
== Put class name for functions ==
|
||||||
|
- Find : ^.*?
|
||||||
|
- Replace : $0ClassName::
|
||||||
|
|
||||||
|
== Declare functions ==
|
||||||
|
- Find : ;
|
||||||
|
- Replace : \r\n{\r\n\t// FIXME: STUB\r\n}\r\n
|
Loading…
Add table
Add a link
Reference in a new issue