Rev 255 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 255 | Rev 258 | ||
---|---|---|---|
Line 80... | Line 80... | ||
80 | all_tabs << ["{" + mod_cats.join(",") + "}"] |
80 | all_tabs << ["{" + mod_cats.join(",") + "}"] |
81 | puts "[\"" + @categorys.join("\",\"") + "\"]" |
81 | puts "[\"" + @categorys.join("\",\"") + "\"]" |
Line 82... | Line 82... | ||
82 | 82 | ||
83 | 83 | ||
84 | all_names << ["{"+@categorys.map { |c| |
84 | all_names << ["{"+@categorys.map { |c| |
85 | "{\"" + @category[c].map { |e| |
85 | "{" + @category[c].map { |e| |
86 | e[:name] |
86 | "STRINGID_" + e[:function] |
Line 87... | Line 87... | ||
87 | }.join("\",\"") + "\"}" |
87 | }.join(",") + "}" |
88 | }.join(",")+"}"] |
88 | }.join(",")+"}"] |
89 | 89 | ||
Line 110... | Line 110... | ||
110 | 110 | ||
Line 111... | Line 111... | ||
111 | } |
111 | } |
112 | 112 | ||
113 | puts "// -- start generated code --" |
113 | puts "// -- start generated code --" |
114 | puts "public final static int[][] all_tab_stringids={"+all_tabs.join(",")+"};" |
114 | puts "public final static int[][] all_tab_stringids={"+all_tabs.join(",")+"};" |
115 | puts "public final static String[][][] all_field_names={"+all_names.join(",")+"};" |
115 | puts "public final static int[][][] all_field_stringids={"+all_names.join(",")+"};" |
Line 116... | Line 116... | ||
116 | puts "public final static int[][][] all_field_positions={"+all_positions.join(",")+"};" |
116 | puts "public final static int[][][] all_field_positions={"+all_positions.join(",")+"};" |