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

Diff of /code/trunk/pcre_newline.c

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

revision 150 by ph10, Tue Apr 17 08:22:40 2007 UTC revision 236 by ph10, Tue Sep 11 12:57:06 2007 UTC
# Line 47  and NLTYPE_ANY. The full list of Unicode Line 47  and NLTYPE_ANY. The full list of Unicode
47  http://unicode.org/unicode/reports/tr18/. */  http://unicode.org/unicode/reports/tr18/. */
48    
49    
50    #ifdef HAVE_CONFIG_H
51    #include "config.h"
52    #endif
53    
54  #include "pcre_internal.h"  #include "pcre_internal.h"
55    
56    
# Line 124  _pcre_was_newline(const uschar *ptr, int Line 128  _pcre_was_newline(const uschar *ptr, int
128  {  {
129  int c;  int c;
130  ptr--;  ptr--;
131    #ifdef SUPPORT_UTF8
132  if (utf8)  if (utf8)
133    {    {
134    BACKCHAR(ptr);    BACKCHAR(ptr);
135    GETCHAR(c, ptr);    GETCHAR(c, ptr);
136    }    }
137  else c = *ptr;  else c = *ptr;
138    #else   /* no UTF-8 support */
139    c = *ptr;
140    #endif  /* SUPPORT_UTF8 */
141    
142  if (type == NLTYPE_ANYCRLF) switch(c)  if (type == NLTYPE_ANYCRLF) switch(c)
143    {    {

Legend:
Removed from v.150  
changed lines
  Added in v.236

  ViewVC Help
Powered by ViewVC 1.1.5