Lines Matching refs:outfile
45 def main(infile, outfile): argument
49 print >>outfile, '// Generated from Unicode script tables\n'
50 print >>outfile, '#ifndef CATEGORY_PROPERTIES_H_'
51 print >>outfile, '#define CATEGORY_PROPERTIES_H_\n'
52 print >>outfile, '#include <stdint.h>'
53 print >>outfile, '#include "harfbuzz-external.h"\n'
54 print >>outfile, 'struct category_property {'
55 print >>outfile, ' uint32_t range_start;'
56 print >>outfile, ' uint32_t range_end;'
57 print >>outfile, ' HB_CharCategory category;'
58 print >>outfile, '};\n'
59 print >>outfile, 'static const struct category_property category_properties[] = {'
61 print >>outfile, ' {0x%x, 0x%x, %s},' % (start, end, value)
62 print >>outfile, '};\n'
63 print >>outfile, 'static const unsigned category_properties_count = %d;\n' % len(ranges)
64 print >>outfile, '#endif // CATEGORY_PROPERTIES_H_'