diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-08-31 03:42:05 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-08-31 03:42:05 +0200 |
commit | a76fa337cc657dbe669ffb8dbdac606d4d6616f1 (patch) | |
tree | a6f004237df60876d087f79ac369fdc2545697c9 /src/utf32_be.c | |
parent | 5e01a4852b31d537307994248869caf38b4023cc (diff) |
Imported Upstream version 6.1.0upstream/6.1.0
Diffstat (limited to 'src/utf32_be.c')
-rw-r--r-- | src/utf32_be.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/utf32_be.c b/src/utf32_be.c index b8f64af..d0c7f39 100644 --- a/src/utf32_be.c +++ b/src/utf32_be.c @@ -36,6 +36,12 @@ utf32be_mbc_enc_len(const UChar* p ARG_UNUSED) } static int +is_valid_mbc_string(const UChar* s, const UChar* end) +{ + return onigenc_length_check_is_valid_mbc_string(ONIG_ENCODING_UTF32_BE, s, end); +} + +static int utf32be_is_mbc_newline(const UChar* p, const UChar* end) { if (p + 3 < end) { @@ -183,5 +189,6 @@ OnigEncodingType OnigEncodingUTF32_BE = { utf32be_left_adjust_char_head, onigenc_always_false_is_allowed_reverse_match, NULL, /* init */ - NULL /* is_initialized */ + NULL, /* is_initialized */ + is_valid_mbc_string }; |