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

Diff of /code/trunk/pcre16_ord2utf16.c

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

revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 1099 by chpe, Tue Oct 16 15:56:22 2012 UTC
# Line 69  PRIV(ord2utf)(pcre_uint32 cvalue, pcre_u Line 69  PRIV(ord2utf)(pcre_uint32 cvalue, pcre_u
69  {  {
70  #ifdef SUPPORT_UTF  #ifdef SUPPORT_UTF
71    
 /* Checking invalid cvalue character, encoded as invalid UTF-16 character.  
 Should never happen in practice. */  
 if ((cvalue & 0xf800) == 0xd800 || cvalue >= 0x110000)  
   cvalue = 0xfffe;  
   
72  if (cvalue <= 0xffff)  if (cvalue <= 0xffff)
73    {    {
74    *buffer = (pcre_uchar)cvalue;    *buffer = (pcre_uchar)cvalue;

Legend:
Removed from v.836  
changed lines
  Added in v.1099

  ViewVC Help
Powered by ViewVC 1.1.5