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

Diff of /code/trunk/pcre32_utf32_utils.c

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

revision 1055 by chpe, Tue Oct 16 15:53:30 2012 UTC revision 1138 by chpe, Thu Oct 18 19:08:14 2012 UTC
# Line 105  const pcre_uchar *end; Line 105  const pcre_uchar *end;
105  register pcre_uchar c;  register pcre_uchar c;
106    
107  if (length < 0)  if (length < 0)
108    length = STRLEN_UC(iptr) + 1;    end = iptr + STRLEN_UC(iptr) + 1;
109  end = iptr + length;  else
110      end = iptr + length;
111    
112  while (iptr < end)  while (iptr < end)
113    {    {
# Line 118  while (iptr < end) Line 119  while (iptr < end)
119      host_bo = c == 0x0000feffu;      host_bo = c == 0x0000feffu;
120      if (keep_boms != 0)      if (keep_boms != 0)
121        *optr++ = 0x0000feffu;        *optr++ = 0x0000feffu;
     else  
       length--;  
122      }      }
123    else    else
124      *optr++ = host_bo ? c : swap_uint32(c);      *optr++ = host_bo ? c : swap_uint32(c);

Legend:
Removed from v.1055  
changed lines
  Added in v.1138

  ViewVC Help
Powered by ViewVC 1.1.5