/[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 579 by ph10, Wed Nov 24 17:39:25 2010 UTC revision 598 by ph10, Sat May 7 15:37:31 2011 UTC
# Line 6  Line 6 
6  and semantics are as close as possible to those of the Perl 5 language.  and semantics are as close as possible to those of the Perl 5 language.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2010 University of Cambridge             Copyright (c) 1997-2011 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 6921  while (ptr[skipatstart] == CHAR_LEFT_PAR Line 6921  while (ptr[skipatstart] == CHAR_LEFT_PAR
6921    
6922  utf8 = (options & PCRE_UTF8) != 0;  utf8 = (options & PCRE_UTF8) != 0;
6923    
6924  /* Can't support UTF8 unless PCRE has been compiled to include the code. */  /* Can't support UTF8 unless PCRE has been compiled to include the code. The
6925    return of an error code from _pcre_valid_utf8() is a new feature, introduced in
6926    release 8.13. The only use we make of it here is to adjust the offset value to
6927    the end of the string for a short string error, for compatibility with previous
6928    versions. */
6929    
6930  #ifdef SUPPORT_UTF8  #ifdef SUPPORT_UTF8
6931  if (utf8 && (options & PCRE_NO_UTF8_CHECK) == 0 &&  if (utf8 && (options & PCRE_NO_UTF8_CHECK) == 0 &&
6932       (*erroroffset = _pcre_valid_utf8((USPTR)pattern, -1)) >= 0)       (*erroroffset = _pcre_valid_utf8((USPTR)pattern, -1, &errorcode)) >= 0)
6933    {    {
6934    errorcode = ERR44;    errorcode = ERR44;
6935    goto PCRE_EARLY_ERROR_RETURN2;    goto PCRE_EARLY_ERROR_RETURN2;

Legend:
Removed from v.579  
changed lines
  Added in v.598

  ViewVC Help
Powered by ViewVC 1.1.5