summaryrefslogtreecommitdiff
path: root/src/euc_jp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/euc_jp.c')
-rw-r--r--src/euc_jp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/euc_jp.c b/src/euc_jp.c
index 17f53e7..19422ce 100644
--- a/src/euc_jp.c
+++ b/src/euc_jp.c
@@ -56,6 +56,12 @@ mbc_enc_len(const UChar* p)
return EncLen_EUCJP[*p];
}
+static int
+is_valid_mbc_string(const UChar* s, const UChar* end)
+{
+ return onigenc_length_check_is_valid_mbc_string(ONIG_ENCODING_EUC_JP, s, end);
+}
+
static OnigCodePoint
mbc_to_code(const UChar* p, const UChar* end)
{
@@ -269,5 +275,6 @@ OnigEncodingType OnigEncodingEUC_JP = {
left_adjust_char_head,
is_allowed_reverse_match,
NULL, /* init */
- NULL /* is_initialized */
+ NULL, /* is_initialized */
+ is_valid_mbc_string
};