| 67 |
int |
int |
| 68 |
PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer) |
PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer) |
| 69 |
{ |
{ |
| 70 |
#ifdef SUPPORT_UTF16 |
#ifdef SUPPORT_UTF |
| 71 |
|
|
| 72 |
/* Checking invalid cvalue character, encoded as invalid UTF-16 character. |
/* Checking invalid cvalue character, encoded as invalid UTF-16 character. |
| 73 |
Should never happen in practice. */ |
Should never happen in practice. */ |
| 85 |
*buffer = 0xdc00 | (cvalue & 0x3ff); |
*buffer = 0xdc00 | (cvalue & 0x3ff); |
| 86 |
return 2; |
return 2; |
| 87 |
|
|
| 88 |
#else |
#else /* SUPPORT_UTF */ |
|
|
|
| 89 |
(void)(cvalue); /* Keep compiler happy; this function won't ever be */ |
(void)(cvalue); /* Keep compiler happy; this function won't ever be */ |
| 90 |
(void)(buffer); /* called when SUPPORT_UTF8 is not defined. */ |
(void)(buffer); /* called when SUPPORT_UTF8 is not defined. */ |
| 91 |
return 0; |
return 0; |
| 92 |
|
#endif /* SUPPORT_UTF */ |
|
#endif |
|
| 93 |
} |
} |
| 94 |
|
|
| 95 |
/* End of pcre16_ord2utf16.c */ |
/* End of pcre16_ord2utf16.c */ |