Lines Matching full:outfile
20 def main(infile, outfile):
24 print >>outfile, '// Generated from Unicode Grapheme break tables\n'
25 print >>outfile, '#ifndef GRAPHEME_BREAK_PROPERTY_H_'
26 print >>outfile, '#define GRAPHEME_BREAK_PROPERTY_H_\n'
27 print >>outfile, '#include <stdint.h>'
28 print >>outfile, '#include "harfbuzz-external.h"\n'
29 print >>outfile, 'struct grapheme_break_property {'
30 print >>outfile, ' uint32_t range_start;'
31 print >>outfile, ' uint32_t range_end;'
32 print >>outfile, ' HB_GraphemeClass klass;'
33 print >>outfile, '};\n'
34 print >>outfile, 'static const struct grapheme_break_property grapheme_break_properties[] = {'
36 print >>outfile, ' {0x%x, 0x%x, %s},' % (start, end, value)
37 print >>outfile, '};\n'
38 print >>outfile, 'static const unsigned grapheme_break_properties_count = %d;\n' % len(ranges)
39 print >>outfile, '#endif // GRAPHEME_BREAK_PROPERTY_H_'