diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-09-05 22:32:59 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-09-05 22:32:59 +0200 |
commit | 6a3c5a588240760f577cf090c5e484b821af1873 (patch) | |
tree | d527e9ced7d531815e9d43bec38e62a6cd53de36 /src/gperf_fold_key_conv.py | |
parent | a38d6e8f8417b777925660269969ce2d353808ef (diff) | |
parent | b0132ba11e2c7609d7b50ffa56532a357efe6e2a (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/gperf_fold_key_conv.py')
-rwxr-xr-x | src/gperf_fold_key_conv.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gperf_fold_key_conv.py b/src/gperf_fold_key_conv.py index 59c5de9..376d343 100755 --- a/src/gperf_fold_key_conv.py +++ b/src/gperf_fold_key_conv.py @@ -1,16 +1,16 @@ #!/usr/bin/python # -*- coding: utf-8 -*- # gperf_fold_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_RETURN_TYPE = re.compile('^const\s+short\s+int\s*\*') -REG_FOLD_KEY = re.compile('unicode_fold(\d)_key\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+unsigned\s+int\s+len\)') +REG_FOLD_KEY = re.compile('unicode_fold(\d)_key\s*\(register\s+const\s+char\s*\*\s*str,\s*register\s+size_t\s+len\)') REG_ENTRY = re.compile('\{".*?",\s*(-?\d+)\s*\}') REG_IF_LEN = re.compile('if\s*\(\s*len\s*<=\s*MAX_WORD_LENGTH.+') REG_GET_HASH = re.compile('(?:register\s+)?(?:unsigned\s+)?int\s+key\s*=\s*hash\s*\(str,\s*len\);') |