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

Diff of /code/trunk/pcre_valid_utf8.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 93 by nigel, Sat Feb 24 21:41:42 2007 UTC
# Line 79  for (p = string; length-- > 0; p++) Line 79  for (p = string; length-- > 0; p++)
79    register int ab;    register int ab;
80    register int c = *p;    register int c = *p;
81    if (c < 128) continue;    if (c < 128) continue;
82    if ((c & 0xc0) != 0xc0) return p - string;    if (c < 0xc0) return p - string;
83    ab = _pcre_utf8_table4[c & 0x3f];  /* Number of additional bytes */    ab = _pcre_utf8_table4[c & 0x3f];  /* Number of additional bytes */
84    if (length < ab) return p - string;    if (length < ab) return p - string;
85    length -= ab;    length -= ab;

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12