diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-09-05 22:07:01 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-09-05 22:07:01 +0200 |
commit | bff9867dafed1bf5aa196614ec6cf2c83022c482 (patch) | |
tree | 13260e2b0cd22ff5327f9a56be748739ae5754ca /src/gperf_unfold_key_conv.py | |
parent | a38d6e8f8417b777925660269969ce2d353808ef (diff) | |
parent | c9b3c26db59d89e320a6eb86d9558051ecba0900 (diff) |
Update upstream source from tag 'upstream/6.9.0'
Update to upstream version '6.9.0'
with Debian dir 3b2adce63a2dab0d7e0e9124b922c348d239c1ec
Diffstat (limited to 'src/gperf_unfold_key_conv.py')
-rwxr-xr-x | src/gperf_unfold_key_conv.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gperf_unfold_key_conv.py b/src/gperf_unfold_key_conv.py index 6f3ccb4..3cf4836 100755 --- a/src/gperf_unfold_key_conv.py +++ b/src/gperf_unfold_key_conv.py @@ -1,15 +1,15 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # gperf_unfold_key_conv.py -# Copyright (c) 2016-2017 K.Kosako +# Copyright (c) 2016-2018 K.Kosako import sys import re REG_LINE_GPERF = re.compile('#line .+gperf"') -REG_HASH_FUNC = re.compile('hash\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+unsigned\s+int\s+len\s*\)') +REG_HASH_FUNC = re.compile('hash\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+size_t\s+len\s*\)') REG_STR_AT = re.compile('str\[(\d+)\]') -REG_UNFOLD_KEY = re.compile('unicode_unfold_key\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+unsigned\s+int\s+len\)') +REG_UNFOLD_KEY = re.compile('onigenc_unicode_unfold_key\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+size_t\s+len\)') REG_ENTRY = re.compile('\{".+?",\s*/\*(.+?)\*/\s*(-?\d+),\s*(\d)\}') REG_EMPTY_ENTRY = re.compile('\{"",\s*(-?\d+),\s*(\d)\}') REG_IF_LEN = re.compile('if\s*\(\s*len\s*<=\s*MAX_WORD_LENGTH.+') @@ -26,7 +26,7 @@ def parse_line(s): if r != s: return r r = re.sub(REG_STR_AT, 'onig_codes_byte_at(codes, \\1)', s) if r != s: return r - r = re.sub(REG_UNFOLD_KEY, 'unicode_unfold_key(OnigCodePoint code)', s) + r = re.sub(REG_UNFOLD_KEY, 'onigenc_unicode_unfold_key(OnigCodePoint code)', s) if r != s: return r r = re.sub(REG_ENTRY, '{\\1, \\2, \\3}', s) if r != s: return r |