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

Diff of /code/trunk/pcre_fullinfo.c

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

revision 1112 by chpe, Tue Oct 16 15:55:07 2012 UTC revision 1113 by chpe, Tue Oct 16 15:57:12 2012 UTC
# Line 140  switch (what) Line 140  switch (what)
140      ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2;      ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2;
141    break;    break;
142    
143    case PCRE_INFO_FIRSTLITERAL:    case PCRE_INFO_FIRSTCHARACTER:
144      *((pcre_uint32 *)where) =      *((pcre_uint32 *)where) =
145        (re->flags & PCRE_FIRSTSET) != 0 ? re->first_char : 0;        (re->flags & PCRE_FIRSTSET) != 0 ? re->first_char : 0;
146      break;      break;
147    
148    case PCRE_INFO_FIRSTLITERALSET:    case PCRE_INFO_FIRSTCHARACTERFLAGS:
149      *((int *)where) =      *((int *)where) =
150        ((re->flags & PCRE_FIRSTSET) != 0) ? 1 :        ((re->flags & PCRE_FIRSTSET) != 0) ? 1 :
151        ((re->flags & PCRE_STARTLINE) != 0) ? 2 : 0;        ((re->flags & PCRE_STARTLINE) != 0) ? 2 : 0;
# Line 177  switch (what) Line 177  switch (what)
177      ((re->flags & PCRE_REQCHSET) != 0)? re->req_char : -1;      ((re->flags & PCRE_REQCHSET) != 0)? re->req_char : -1;
178    break;    break;
179    
180    case PCRE_INFO_LASTLITERAL2:    case PCRE_INFO_REQUIREDCHAR:
181      *((pcre_uint32 *)where) =      *((pcre_uint32 *)where) =
182        ((re->flags & PCRE_REQCHSET) != 0) ? re->req_char : 0;        ((re->flags & PCRE_REQCHSET) != 0) ? re->req_char : 0;
183      break;      break;
184    
185    case PCRE_INFO_LASTLITERAL2SET:    case PCRE_INFO_REQUIREDCHARFLAGS:
186      *((int *)where) =      *((int *)where) =
187        ((re->flags & PCRE_REQCHSET) != 0);        ((re->flags & PCRE_REQCHSET) != 0);
188      break;      break;

Legend:
Removed from v.1112  
changed lines
  Added in v.1113

  ViewVC Help
Powered by ViewVC 1.1.5