| 680 |
char null_str[1] = { 0 }; |
char null_str[1] = { 0 }; |
| 681 |
#else |
#else |
| 682 |
pcre16 *regex; |
pcre16 *regex; |
| 683 |
PCRE_SCHAR16 null_str[1] = { 0 }; |
PCRE_UCHAR16 null_str[1] = { 0 }; |
| 684 |
#endif |
#endif |
| 685 |
|
|
| 686 |
if (mode) { |
if (mode) { |
| 771 |
|
|
| 772 |
#ifdef SUPPORT_PCRE16 |
#ifdef SUPPORT_PCRE16 |
| 773 |
|
|
| 774 |
static int convert_utf8_to_utf16(const char *input, PCRE_SCHAR16 *output, int *offsetmap, int max_length) |
static int convert_utf8_to_utf16(const char *input, PCRE_UCHAR16 *output, int *offsetmap, int max_length) |
| 775 |
{ |
{ |
| 776 |
unsigned char *iptr = (unsigned char*)input; |
unsigned char *iptr = (unsigned char*)input; |
| 777 |
unsigned short *optr = (unsigned short *)output; |
unsigned short *optr = (unsigned short *)output; |
| 819 |
return (int)(optr - (unsigned short *)output); |
return (int)(optr - (unsigned short *)output); |
| 820 |
} |
} |
| 821 |
|
|
| 822 |
static int copy_char8_to_char16(const char *input, PCRE_SCHAR16 *output, int max_length) |
static int copy_char8_to_char16(const char *input, PCRE_UCHAR16 *output, int max_length) |
| 823 |
{ |
{ |
| 824 |
unsigned char *iptr = (unsigned char*)input; |
unsigned char *iptr = (unsigned char*)input; |
| 825 |
unsigned short *optr = (unsigned short *)output; |
unsigned short *optr = (unsigned short *)output; |
| 836 |
} |
} |
| 837 |
|
|
| 838 |
#define REGTEST_MAX_LENGTH 4096 |
#define REGTEST_MAX_LENGTH 4096 |
| 839 |
static PCRE_SCHAR16 regtest_buf[REGTEST_MAX_LENGTH]; |
static PCRE_UCHAR16 regtest_buf[REGTEST_MAX_LENGTH]; |
| 840 |
static int regtest_offsetmap[REGTEST_MAX_LENGTH]; |
static int regtest_offsetmap[REGTEST_MAX_LENGTH]; |
| 841 |
|
|
| 842 |
#endif /* SUPPORT_PCRE16 */ |
#endif /* SUPPORT_PCRE16 */ |