/[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 1138 by chpe, Thu Oct 18 19:08:14 2012 UTC revision 1156 by ph10, Sun Oct 21 17:21:19 2012 UTC
# Line 51  strings to host byte order. */ Line 51  strings to host byte order. */
51    
52  #include "pcre_internal.h"  #include "pcre_internal.h"
53    
54    #ifdef SUPPORT_UTF
55  static pcre_uint32  static pcre_uint32
56  swap_uint32(pcre_uint32 value)  swap_uint32(pcre_uint32 value)
57  {  {
# Line 59  return ((value & 0x000000ff) << 24) | Line 60  return ((value & 0x000000ff) << 24) |
60         ((value & 0x00ff0000) >>  8) |         ((value & 0x00ff0000) >>  8) |
61         (value >> 24);         (value >> 24);
62  }  }
63    #endif
64    
65    
66  /*************************************************  /*************************************************
67  *  Convert any UTF-32 string to host byte order  *  *  Convert any UTF-32 string to host byte order  *
# Line 130  if (host_byte_order != NULL) Line 133  if (host_byte_order != NULL)
133  (void)(output);  /* Keep picky compilers happy */  (void)(output);  /* Keep picky compilers happy */
134  (void)(input);  (void)(input);
135  (void)(keep_boms);  (void)(keep_boms);
136    (void)(host_byte_order);
137  #endif /* SUPPORT_UTF */  #endif /* SUPPORT_UTF */
138  return length;  return length;
139  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.5