Nerd Posts
Regex: Eclipse Search & Replace
to convert #defines into java final vars...
#define DEFINE_VARIABLE 0x12AB
Search and replace:
#define -> public static final int
(0x[\dA-F]{4}) -> = \1;
Result:
public static final int DEFINE_VARIABLE = 0x12AB;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment