/[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 109 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 110 by ph10, Wed Mar 7 16:31:04 2007 UTC
# Line 66  Returns: < 0 if the string is a Line 66  Returns: < 0 if the string is a
66  int  int
67  _pcre_valid_utf8(const uschar *string, int length)  _pcre_valid_utf8(const uschar *string, int length)
68  {  {
69    #ifdef SUPPORT_UTF8
70  register const uschar *p;  register const uschar *p;
71    
72  if (length < 0)  if (length < 0)
# Line 123  for (p = string; length-- > 0; p++) Line 124  for (p = string; length-- > 0; p++)
124      if ((*(++p) & 0xc0) != 0x80) return p - string;      if ((*(++p) & 0xc0) != 0x80) return p - string;
125      }      }
126    }    }
127    #endif
128    
129  return -1;  return -1;
130  }  }

Legend:
Removed from v.109  
changed lines
  Added in v.110

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12