/[pcre]/code/trunk/maint/ucptest.c
ViewVC logotype

Diff of /code/trunk/maint/ucptest.c

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

revision 943 by ph10, Tue Feb 28 15:02:51 2012 UTC revision 1011 by ph10, Sat Aug 25 11:36:15 2012 UTC
# Line 54  print_prop(int c) Line 54  print_prop(int c)
54  int type = UCD_CATEGORY(c);  int type = UCD_CATEGORY(c);
55  int fulltype = UCD_CHARTYPE(c);  int fulltype = UCD_CHARTYPE(c);
56  int script = UCD_SCRIPT(c);  int script = UCD_SCRIPT(c);
57    int gbprop = UCD_GRAPHBREAK(c);
58  int othercase = UCD_OTHERCASE(c);  int othercase = UCD_OTHERCASE(c);
59    
60  unsigned char *fulltypename = US"??";  unsigned char *fulltypename = US"??";
61  unsigned char *typename = US"??";  unsigned char *typename = US"??";
62  unsigned char *scriptname = US"??";  unsigned char *scriptname = US"??";
63    unsigned char *graphbreak = US"??";
64    
65  switch (type)  switch (type)
66    {    {
# Line 104  switch (fulltype) Line 106  switch (fulltype)
106    case ucp_Zp: fulltypename = US"Paragraph separator"; break;    case ucp_Zp: fulltypename = US"Paragraph separator"; break;
107    case ucp_Zs: fulltypename = US"Space separator"; break;    case ucp_Zs: fulltypename = US"Space separator"; break;
108    }    }
109    
110    switch(gbprop)
111      {
112      case ucp_gbCR:           graphbreak = US"CR"; break;
113      case ucp_gbLF:           graphbreak = US"LF"; break;
114      case ucp_gbControl:      graphbreak = US"Control"; break;
115      case ucp_gbExtend:       graphbreak = US"Extend"; break;
116      case ucp_gbPrepend:      graphbreak = US"Prepend"; break;
117      case ucp_gbSpacingMark:  graphbreak = US"SpacingMark"; break;
118      case ucp_gbL:            graphbreak = US"Hangul syllable type L"; break;
119      case ucp_gbV:            graphbreak = US"Hangul syllable type V"; break;
120      case ucp_gbT:            graphbreak = US"Hangul syllable type T"; break;
121      case ucp_gbLV:           graphbreak = US"Hangul syllable type LV"; break;
122      case ucp_gbLVT:          graphbreak = US"Hangul syllable type LVT"; break;
123      case ucp_gbOther:        graphbreak = US"Other"; break;
124      }
125    
126  switch(script)  switch(script)
127    {    {
# Line 217  switch(script) Line 235  switch(script)
235    
236    }    }
237    
238  printf("%04x %s: %s %s", c, typename, fulltypename, scriptname);  printf("%04x %s: %s, %s, %s", c, typename, fulltypename, scriptname, graphbreak);
239  if (othercase != c) printf(" %04x", othercase);  if (othercase != c) printf(", %04x", othercase);
240  printf("\n");  printf("\n");
241  }  }
242    

Legend:
Removed from v.943  
changed lines
  Added in v.1011

  ViewVC Help
Powered by ViewVC 1.1.5