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

Diff of /code/trunk/maketables.c

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

revision 72 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 73 by nigel, Sat Feb 24 21:40:30 2007 UTC
# Line 126  for (i = 0; i < 256; i++) Line 126  for (i = 0; i < 256; i++)
126    if (isdigit(i)) x += ctype_digit;    if (isdigit(i)) x += ctype_digit;
127    if (isxdigit(i)) x += ctype_xdigit;    if (isxdigit(i)) x += ctype_xdigit;
128    if (isalnum(i) || i == '_') x += ctype_word;    if (isalnum(i) || i == '_') x += ctype_word;
129    if (strchr("*+?{^.$|()[", i) != 0) x += ctype_meta;  
130    *p++ = x;    /* Note: strchr includes the terminating zero in the characters it considers.
131    }    In this instance, that is ok because we want binary zero to be flagged as a
132      meta-character, which in this sense is any character that terminates a run
133      of data characters. */
134    
135      if (strchr("*+?{^.$|()[", i) != 0) x += ctype_meta; *p++ = x; }
136    
137  return yield;  return yield;
138  }  }

Legend:
Removed from v.72  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.5