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

Diff of /code/trunk/pcre_ord2utf8.c

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

revision 200 by ph10, Wed Aug 1 09:10:40 2007 UTC revision 371 by ph10, Mon Aug 25 18:28:05 2008 UTC
# Line 6  Line 6 
6  and semantics are as close as possible to those of the Perl 5 language.  and semantics are as close as possible to those of the Perl 5 language.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2007 University of Cambridge             Copyright (c) 1997-2008 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 42  POSSIBILITY OF SUCH DAMAGE. Line 42  POSSIBILITY OF SUCH DAMAGE.
42  character value into a UTF8 string. */  character value into a UTF8 string. */
43    
44  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
45  #include <config.h>  #include "config.h"
46  #endif  #endif
47    
48  #include "pcre_internal.h"  #include "pcre_internal.h"
# Line 78  for (j = i; j > 0; j--) Line 78  for (j = i; j > 0; j--)
78  *buffer = _pcre_utf8_table2[i] | cvalue;  *buffer = _pcre_utf8_table2[i] | cvalue;
79  return i + 1;  return i + 1;
80  #else  #else
81  return 0;   /* Keep compiler happy; this function won't ever be */  (void)(cvalue);  /* Keep compiler happy; this function won't ever be */
82  #endif      /* called when SUPPORT_UTF8 is not defined. */  (void)(buffer);  /* called when SUPPORT_UTF8 is not defined. */
83    return 0;
84    #endif
85  }  }
86    
87  /* End of pcre_ord2utf8.c */  /* End of pcre_ord2utf8.c */

Legend:
Removed from v.200  
changed lines
  Added in v.371

  ViewVC Help
Powered by ViewVC 1.1.5