summaryrefslogtreecommitdiff
path: root/enc
diff options
context:
space:
mode:
Diffstat (limited to 'enc')
-rw-r--r--enc/euc_jp.c4
-rw-r--r--enc/shift_jis.c4
-rw-r--r--enc/unicode.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/enc/euc_jp.c b/enc/euc_jp.c
index 61bb8ba65a..d0852c3daa 100644
--- a/enc/euc_jp.c
+++ b/enc/euc_jp.c
@@ -501,9 +501,9 @@ static const OnigCodePoint CR_Cyrillic[] = {
#include "enc/jis/props.h"
static int
-property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
+property_name_to_ctype(OnigEncoding enc, const UChar* p, const UChar* end)
{
- UChar *s = p, *e = end;
+ const UChar *s = p, *e = end;
const struct enc_property *prop =
onig_jis_property((const char* )s, (unsigned int )(e - s));
diff --git a/enc/shift_jis.c b/enc/shift_jis.c
index cbd3f02051..165592c905 100644
--- a/enc/shift_jis.c
+++ b/enc/shift_jis.c
@@ -490,9 +490,9 @@ static const OnigCodePoint CR_Cyrillic[] = {
#include "enc/jis/props.h"
static int
-property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
+property_name_to_ctype(OnigEncoding enc, const UChar* p, const UChar* end)
{
- UChar *s = p, *e = end;
+ const UChar *s = p, *e = end;
const struct enc_property *prop =
onig_jis_property((const char* )s, (unsigned int )(e - s));
diff --git a/enc/unicode.c b/enc/unicode.c
index f0ef89880f..975fc2648e 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -188,12 +188,12 @@ onigenc_utf16_32_get_ctype_code_range(OnigCtype ctype, OnigCodePoint* sb_out,
#define PROPERTY_NAME_MAX_SIZE (MAX_WORD_LENGTH + 1)
extern int
-onigenc_unicode_property_name_to_ctype(OnigEncoding enc, UChar* name, UChar* end)
+onigenc_unicode_property_name_to_ctype(OnigEncoding enc, const UChar* name, const UChar* end)
{
int len;
int ctype;
UChar buf[PROPERTY_NAME_MAX_SIZE];
- UChar *p;
+ const UChar *p;
OnigCodePoint code;
len = 0;