/[pcre]/code/tags/pcre-7.7/pcre_tables.c
ViewVC logotype

Diff of /code/tags/pcre-7.7/pcre_tables.c

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

revision 87 by nigel, Sat Feb 24 21:41:21 2007 UTC revision 107 by ph10, Wed Mar 7 11:02:28 2007 UTC
# Line 61  const uschar _pcre_OP_lengths[] = { OP_L Line 61  const uschar _pcre_OP_lengths[] = { OP_L
61  /* These are the breakpoints for different numbers of bytes in a UTF-8  /* These are the breakpoints for different numbers of bytes in a UTF-8
62  character. */  character. */
63    
64    #ifdef SUPPORT_UTF8
65    
66  const int _pcre_utf8_table1[] =  const int _pcre_utf8_table1[] =
67    { 0x7f, 0x7ff, 0xffff, 0x1fffff, 0x3ffffff, 0x7fffffff};    { 0x7f, 0x7ff, 0xffff, 0x1fffff, 0x3ffffff, 0x7fffffff};
68    
# Line 72  first byte of a character, indexed by th Line 74  first byte of a character, indexed by th
74  const int _pcre_utf8_table2[] = { 0,    0xc0, 0xe0, 0xf0, 0xf8, 0xfc};  const int _pcre_utf8_table2[] = { 0,    0xc0, 0xe0, 0xf0, 0xf8, 0xfc};
75  const int _pcre_utf8_table3[] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01};  const int _pcre_utf8_table3[] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01};
76    
77  /* Table of the number of extra characters, indexed by the first character  /* Table of the number of extra bytes, indexed by the first byte masked with
78  masked with 0x3f. The highest number for a valid UTF-8 character is in fact  0x3f. The highest number for a valid UTF-8 first byte is in fact 0x3d. */
 0x3d. */  
79    
80  const uschar _pcre_utf8_table4[] = {  const uschar _pcre_utf8_table4[] = {
81    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
# Line 89  const ucp_type_table _pcre_utt[] = { Line 90  const ucp_type_table _pcre_utt[] = {
90    { "Any",                 PT_ANY,  0 },    { "Any",                 PT_ANY,  0 },
91    { "Arabic",              PT_SC,   ucp_Arabic },    { "Arabic",              PT_SC,   ucp_Arabic },
92    { "Armenian",            PT_SC,   ucp_Armenian },    { "Armenian",            PT_SC,   ucp_Armenian },
93      { "Balinese",            PT_SC,   ucp_Balinese },
94    { "Bengali",             PT_SC,   ucp_Bengali },    { "Bengali",             PT_SC,   ucp_Bengali },
95    { "Bopomofo",            PT_SC,   ucp_Bopomofo },    { "Bopomofo",            PT_SC,   ucp_Bopomofo },
96    { "Braille",             PT_SC,   ucp_Braille },    { "Braille",             PT_SC,   ucp_Braille },
# Line 104  const ucp_type_table _pcre_utt[] = { Line 106  const ucp_type_table _pcre_utt[] = {
106    { "Common",              PT_SC,   ucp_Common },    { "Common",              PT_SC,   ucp_Common },
107    { "Coptic",              PT_SC,   ucp_Coptic },    { "Coptic",              PT_SC,   ucp_Coptic },
108    { "Cs",                  PT_PC,   ucp_Cs },    { "Cs",                  PT_PC,   ucp_Cs },
109      { "Cuneiform",           PT_SC,   ucp_Cuneiform },
110    { "Cypriot",             PT_SC,   ucp_Cypriot },    { "Cypriot",             PT_SC,   ucp_Cypriot },
111    { "Cyrillic",            PT_SC,   ucp_Cyrillic },    { "Cyrillic",            PT_SC,   ucp_Cyrillic },
112    { "Deseret",             PT_SC,   ucp_Deseret },    { "Deseret",             PT_SC,   ucp_Deseret },
# Line 146  const ucp_type_table _pcre_utt[] = { Line 149  const ucp_type_table _pcre_utt[] = {
149    { "N",                   PT_GC,   ucp_N },    { "N",                   PT_GC,   ucp_N },
150    { "Nd",                  PT_PC,   ucp_Nd },    { "Nd",                  PT_PC,   ucp_Nd },
151    { "New_Tai_Lue",         PT_SC,   ucp_New_Tai_Lue },    { "New_Tai_Lue",         PT_SC,   ucp_New_Tai_Lue },
152      { "Nko",                 PT_SC,   ucp_Nko },
153    { "Nl",                  PT_PC,   ucp_Nl },    { "Nl",                  PT_PC,   ucp_Nl },
154    { "No",                  PT_PC,   ucp_No },    { "No",                  PT_PC,   ucp_No },
155    { "Ogham",               PT_SC,   ucp_Ogham },    { "Ogham",               PT_SC,   ucp_Ogham },
# Line 158  const ucp_type_table _pcre_utt[] = { Line 162  const ucp_type_table _pcre_utt[] = {
162    { "Pd",                  PT_PC,   ucp_Pd },    { "Pd",                  PT_PC,   ucp_Pd },
163    { "Pe",                  PT_PC,   ucp_Pe },    { "Pe",                  PT_PC,   ucp_Pe },
164    { "Pf",                  PT_PC,   ucp_Pf },    { "Pf",                  PT_PC,   ucp_Pf },
165      { "Phags_Pa",            PT_SC,   ucp_Phags_Pa },
166      { "Phoenician",          PT_SC,   ucp_Phoenician },
167    { "Pi",                  PT_PC,   ucp_Pi },    { "Pi",                  PT_PC,   ucp_Pi },
168    { "Po",                  PT_PC,   ucp_Po },    { "Po",                  PT_PC,   ucp_Po },
169    { "Ps",                  PT_PC,   ucp_Ps },    { "Ps",                  PT_PC,   ucp_Ps },
# Line 190  const ucp_type_table _pcre_utt[] = { Line 196  const ucp_type_table _pcre_utt[] = {
196    
197  const int _pcre_utt_size = sizeof(_pcre_utt)/sizeof(ucp_type_table);  const int _pcre_utt_size = sizeof(_pcre_utt)/sizeof(ucp_type_table);
198    
199    #endif  /* SUPPORT_UTF8 */
200    
201  /* End of pcre_tables.c */  /* End of pcre_tables.c */

Legend:
Removed from v.87  
changed lines
  Added in v.107

  ViewVC Help
Powered by ViewVC 1.1.5