/[pcre]/code/trunk/pcre_tables.c
ViewVC logotype

Diff of /code/trunk/pcre_tables.c

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

revision 1128 by chpe, Thu Oct 18 18:35:08 2012 UTC revision 1221 by ph10, Sun Nov 11 20:27:03 2012 UTC
# Line 132  two code points. The breaking rules are Line 132  two code points. The breaking rules are
132     controls.     controls.
133    
134  3. Do not break Hangul syllable sequences, the rules for which are:  3. Do not break Hangul syllable sequences, the rules for which are:
135    
136      L may be followed by L, V, LV or LVT      L may be followed by L, V, LV or LVT
137      LV or V may be followed by V or T      LV or V may be followed by V or T
138      LVT or T may be followed by T      LVT or T may be followed by T
139    
140  4. Do not break before extending characters.  4. Do not break before extending characters.
141    
142  The next two rules are only for extended grapheme clusters (but that's what we  The next two rules are only for extended grapheme clusters (but that's what we
143  are implementing).  are implementing).
144    
145  5. Do not break before SpacingMarks.  5. Do not break before SpacingMarks.
146    
147  6. Do not break after Prepend characters.  6. Do not break after Prepend characters.
148    
149  7. Otherwise, break everywhere.  7. Otherwise, break everywhere.
150  */  */
151    
152  const pcre_uint32 PRIV(ucp_gbtable[]) = {  const pcre_uint32 PRIV(ucp_gbtable[]) = {
153     (1<<ucp_gbLF),                                           /*  0 CR */     (1<<ucp_gbLF),                                           /*  0 CR */
154     0,                                                       /*  1 LF */     0,                                                       /*  1 LF */
155     0,                                                       /*  2 Control */     0,                                                       /*  2 Control */
156     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark),                /*  3 Extend */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark),                /*  3 Extend */
157     (1<<ucp_gbExtend)|(1<<ucp_gbPrepend)|                    /*  4 Prepend */     (1<<ucp_gbExtend)|(1<<ucp_gbPrepend)|                    /*  4 Prepend */
158       (1<<ucp_gbSpacingMark)|(1<<ucp_gbL)|       (1<<ucp_gbSpacingMark)|(1<<ucp_gbL)|
159       (1<<ucp_gbV)|(1<<ucp_gbT)|(1<<ucp_gbLV)|       (1<<ucp_gbV)|(1<<ucp_gbT)|(1<<ucp_gbLV)|
160       (1<<ucp_gbLVT)|(1<<ucp_gbOther),       (1<<ucp_gbLVT)|(1<<ucp_gbOther),
161    
162     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark),                /*  5 SpacingMark */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark),                /*  5 SpacingMark */
163     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbL)|   /*  6 L */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbL)|   /*  6 L */
164       (1<<ucp_gbL)|(1<<ucp_gbV)|(1<<ucp_gbLV)|(1<<ucp_gbLVT),       (1<<ucp_gbL)|(1<<ucp_gbV)|(1<<ucp_gbLV)|(1<<ucp_gbLVT),
165    
166     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbV)|   /*  7 V */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbV)|   /*  7 V */
167       (1<<ucp_gbT),       (1<<ucp_gbT),
168    
169     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbT),   /*  8 T */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbT),   /*  8 T */
170     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbV)|   /*  9 LV */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbV)|   /*  9 LV */
171       (1<<ucp_gbT),       (1<<ucp_gbT),
172    
173     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbT),   /* 10 LVT */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)|(1<<ucp_gbT),   /* 10 LVT */
174     (1<<ucp_gbRegionalIndicator),                            /* 11 RegionalIndicator */     (1<<ucp_gbRegionalIndicator),                            /* 11 RegionalIndicator */
175     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)                 /* 12 Other */     (1<<ucp_gbExtend)|(1<<ucp_gbSpacingMark)                 /* 12 Other */
176  };  };
177    
178  #ifdef SUPPORT_JIT  #ifdef SUPPORT_JIT
179  /* This table reverses PRIV(ucp_gentype). We can save the cost  /* This table reverses PRIV(ucp_gentype). We can save the cost
180  of a memory load. */  of a memory load. */

Legend:
Removed from v.1128  
changed lines
  Added in v.1221

  ViewVC Help
Powered by ViewVC 1.1.5