mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 08:46:40 +08:00
script: update BuildLangModel.py to updated SequenceModel struct.
In particular, there is now a language code member.
This commit is contained in:
parent
4e967c9e88
commit
dde09c7d08
@ -514,7 +514,8 @@ for charset in charsets:
|
||||
SM_str += '\n {},'.format(freq_count)
|
||||
SM_str += '\n (float){},'.format(ratio_512)
|
||||
SM_str += '\n {},'.format('PR_TRUE' if lang.use_ascii else 'PR_FALSE')
|
||||
SM_str += '\n "{}"'.format(charset)
|
||||
SM_str += '\n "{},"'.format(charset)
|
||||
SM_str += '\n "{}"'.format(lang.code)
|
||||
SM_str += '\n};'
|
||||
c_code += SM_str
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user