| 30 | } |
| 31 | } |
| 32 | reportCategoryProperties(category) { |
| 33 | let aliases = category.aliases; |
| 34 | aliases.sort((a, b) => a.name.localeCompare(b.name)); |
| 35 | this.report(`#define mxCharSet_${category.name} ${aliases.length}`) |
| 36 | this.report(`static const txCharSetUnicodeProperty ICACHE_RODATA_ATTR gxCharSet_${category.name}[mxCharSet_${category.name}] = {`); |
| 37 | for (let alias of aliases) { |
| 38 | const property = alias.property; |
| 39 | this.report(`\t{ "${alias.name}", mxCharSet_${category.name}_${property.name}, gxCharSet_${category.name}_${property.name} },`); |
| 40 | } |
| 41 | this.report("};"); |
| 42 | } |
| 43 | run() { |
| 44 | let once = true; |
| 45 | let tool = this; |