/[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 109 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 110 by ph10, Wed Mar 7 16:31:04 2007 UTC
# Line 62  Returns: number of characters placed Line 62  Returns: number of characters placed
62  int  int
63  _pcre_ord2utf8(int cvalue, uschar *buffer)  _pcre_ord2utf8(int cvalue, uschar *buffer)
64  {  {
65    #ifdef SUPPORT_UTF8
66  register int i, j;  register int i, j;
67  for (i = 0; i < _pcre_utf8_table1_size; i++)  for (i = 0; i < _pcre_utf8_table1_size; i++)
68    if (cvalue <= _pcre_utf8_table1[i]) break;    if (cvalue <= _pcre_utf8_table1[i]) break;
# Line 73  for (j = i; j > 0; j--) Line 74  for (j = i; j > 0; j--)
74   }   }
75  *buffer = _pcre_utf8_table2[i] | cvalue;  *buffer = _pcre_utf8_table2[i] | cvalue;
76  return i + 1;  return i + 1;
77    #else
78    return 0;   /* Keep compiler happy; this function won't ever be */
79    #endif      /* called when SUPPORT_UTF8 is not defined. */
80  }  }
81    
82  /* End of pcre_ord2utf8.c */  /* End of pcre_ord2utf8.c */

Legend:
Removed from v.109  
changed lines
  Added in v.110

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12