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

Diff of /code/trunk/pcre_compile.c

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

revision 605 by ph10, Fri Jun 3 18:18:30 2011 UTC revision 606 by ph10, Mon Jun 6 17:46:22 2011 UTC
# Line 6976  utf8 = (options & PCRE_UTF8) != 0; Line 6976  utf8 = (options & PCRE_UTF8) != 0;
6976    
6977  /* Can't support UTF8 unless PCRE has been compiled to include the code. The  /* Can't support UTF8 unless PCRE has been compiled to include the code. The
6978  return of an error code from _pcre_valid_utf8() is a new feature, introduced in  return of an error code from _pcre_valid_utf8() is a new feature, introduced in
6979  release 8.13. The only use we make of it here is to adjust the offset value to  release 8.13. It is passed back from pcre_[dfa_]exec(), but at the moment is
6980  the end of the string for a short string error, for compatibility with previous  not used here. */
 versions. */  
6981    
6982  #ifdef SUPPORT_UTF8  #ifdef SUPPORT_UTF8
6983  if (utf8 && (options & PCRE_NO_UTF8_CHECK) == 0 &&  if (utf8 && (options & PCRE_NO_UTF8_CHECK) == 0 &&
6984       (*erroroffset = _pcre_valid_utf8((USPTR)pattern, -1, &errorcode)) >= 0)       (errorcode = _pcre_valid_utf8((USPTR)pattern, -1, erroroffset)) != 0)
6985    {    {
6986    errorcode = ERR44;    errorcode = ERR44;
6987    goto PCRE_EARLY_ERROR_RETURN2;    goto PCRE_EARLY_ERROR_RETURN2;

Legend:
Removed from v.605  
changed lines
  Added in v.606

  ViewVC Help
Powered by ViewVC 1.1.5