/[pcre]/code/trunk/maint/GenerateUtt.py
ViewVC logotype

Diff of /code/trunk/maint/GenerateUtt.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 592 by ph10, Sat Apr 30 17:37:37 2011 UTC revision 942 by ph10, Tue Feb 28 14:50:31 2012 UTC
# Line 34  script_names = ['Arabic', 'Armenian', 'B Line 34  script_names = ['Arabic', 'Armenian', 'B
34   'Javanese', 'Kaithi', 'Lisu', 'Meetei_Mayek', \   'Javanese', 'Kaithi', 'Lisu', 'Meetei_Mayek', \
35   'Old_South_Arabian', 'Old_Turkic', 'Samaritan', 'Tai_Tham', 'Tai_Viet', \   'Old_South_Arabian', 'Old_Turkic', 'Samaritan', 'Tai_Tham', 'Tai_Viet', \
36   # New for Unicode 6.0.0   # New for Unicode 6.0.0
37   'Batak', 'Brahmi', 'Mandaic'   'Batak', 'Brahmi', 'Mandaic', \
38    # New for Unicode 6.1.0
39     'Chakma', 'Meroitic_Cursive', 'Meroitic_Hieroglyphs', 'Miao', 'Sharada', 'Sora_Sompeng', 'Takri'
40   ]   ]
41    
42  category_names = ['Cc', 'Cf', 'Cn', 'Co', 'Cs', 'Ll', 'Lm', 'Lo', 'Lt', 'Lu',  category_names = ['Cc', 'Cf', 'Cn', 'Co', 'Cs', 'Ll', 'Lm', 'Lo', 'Lt', 'Lu',
# Line 79  for utt in utt_table: Line 81  for utt in utt_table:
81  # Print the actual table, using the string names  # Print the actual table, using the string names
82    
83  print ''  print ''
84  print 'const char _pcre_utt_names[] = ';  print 'const char PRIV(utt_names)[] =';
85  last = ''  last = ''
86  for utt in utt_table:  for utt in utt_table:
87          if utt == utt_table[-1]:          if utt == utt_table[-1]:
# Line 88  for utt in utt_table: Line 90  for utt in utt_table:
90  # This was how it was done before the EBCDIC-compatible modification.  # This was how it was done before the EBCDIC-compatible modification.
91  #        print '  "%s\\0"%s' % (utt[0], last)  #        print '  "%s\\0"%s' % (utt[0], last)
92    
93  print '\nconst ucp_type_table _pcre_utt[] = { '  print '\nconst ucp_type_table PRIV(utt)[] = {'
94  offset = 0  offset = 0
95  last = ','  last = ','
96  for utt in utt_table:  for utt in utt_table:

Legend:
Removed from v.592  
changed lines
  Added in v.942

  ViewVC Help
Powered by ViewVC 1.1.5