/[pcre]/code/branches/pcre16/pcre_exec.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_exec.c

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

revision 822 by ph10, Fri Dec 23 16:38:13 2011 UTC revision 823 by ph10, Sat Dec 24 17:43:22 2011 UTC
# Line 6078  if (utf && (options & PCRE_NO_UTF8_CHECK Line 6078  if (utf && (options & PCRE_NO_UTF8_CHECK
6078        offsets[0] = erroroffset;        offsets[0] = erroroffset;
6079        offsets[1] = errorcode;        offsets[1] = errorcode;
6080        }        }
6081    #ifdef COMPILE_PCRE16
6082        return (errorcode <= PCRE_UTF16_ERR1 && md->partial > 1)?
6083          PCRE_ERROR_SHORTUTF16 : PCRE_ERROR_BADUTF16;
6084    #else
6085      return (errorcode <= PCRE_UTF8_ERR5 && md->partial > 1)?      return (errorcode <= PCRE_UTF8_ERR5 && md->partial > 1)?
6086        PCRE_ERROR_SHORTUTF8 : PCRE_ERROR_BADUTF8;        PCRE_ERROR_SHORTUTF8 : PCRE_ERROR_BADUTF8;
6087    #endif
6088      }      }
6089    
6090    /* Check that a start_offset points to the start of a UTF character. */    /* Check that a start_offset points to the start of a UTF character. */

Legend:
Removed from v.822  
changed lines
  Added in v.823

  ViewVC Help
Powered by ViewVC 1.1.5