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

Diff of /code/trunk/pcre_printint.c

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

revision 924 by zherczeg, Wed Feb 22 10:23:56 2012 UTC revision 1045 by ph10, Sun Sep 23 16:50:00 2012 UTC
# Line 130  return 0; Line 130  return 0;
130    
131  if (!utf || (c & 0xc0) != 0xc0)  if (!utf || (c & 0xc0) != 0xc0)
132    {    {
133    if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x%02x", c);    if (PRINTABLE(c)) fprintf(f, "%c", c);
134      else if (c < 0x80) fprintf(f, "\\x%02x", c);
135      else fprintf(f, "\\x{%02x}", c);
136    return 0;    return 0;
137    }    }
138  else  else
# Line 167  else Line 169  else
169  if (!utf || (c & 0xfc00) != 0xd800)  if (!utf || (c & 0xfc00) != 0xd800)
170    {    {
171    if (PRINTABLE(c)) fprintf(f, "%c", c);    if (PRINTABLE(c)) fprintf(f, "%c", c);
172    else if (c <= 0xff) fprintf(f, "\\x%02x", c);    else if (c <= 0x80) fprintf(f, "\\x%02x", c);
173    else fprintf(f, "\\x{%x}", c);    else fprintf(f, "\\x{%02x}", c);
174    return 0;    return 0;
175    }    }
176  else  else

Legend:
Removed from v.924  
changed lines
  Added in v.1045

  ViewVC Help
Powered by ViewVC 1.1.5