Closed csbenz closed 7 years ago
fixed.
BTW this project already contains java enums here 😉
Are you serious it took me hours to get the result I wanted when it was in an adjacent folder. Anyway, I learned a few tricks I suppose :) Thanks!
You should have check the java folder first 😃 One advice, if you developing for Android check this, Android official docs don't recommend enums.
Thanks for the info, I didn't know that. The problem is that I need to be able to get a list of all the emojis easily. Would you still recommend using the final static fields and manually calling each of them?
Here, there is a double space before the comment (after the semi-colon).
Nothing scandalous but caught it while trying to match-replace the data.
By the way, this project is awesome and very handy. I'm currently transforming the data to create a Java enum, here are the regexp values I'm using in case somebody else is interested:
.*(?:String +)([_A-Z\d]+) *= *(?:")(.*)(?:");(?: *(?:\/\/)(.*))?
$1("$2"), // $3
which will yield results of the following format (example with FULL_MOON):
FULL_MOON("🌕"), // https://www.emojibase.com/emoji/1f315/fullmoonsymbol
EDIT: modified the 'match' string to take into account the typo and eventual other erratic spacings.