Hotfix redundant null terminator inserted by emoji completer
This commit is contained in:
parent
17ad97c517
commit
d27e42dec6
7 changed files with 13370 additions and 13066 deletions
|
|
@ -19,7 +19,7 @@ constexpr const std::array<Emoji, {{ entrycount }} > emoji::Provider::emoji = {
|
|||
{%- for c in kwargs.items() %}
|
||||
// {{ c[0].capitalize() }}
|
||||
{%- for e in c[1] %}
|
||||
Emoji{null_literal(u"{{ e.code }}"), null_literal(u"{{ e.shortname }}"), null_literal(u"{{ e.unicodename }}"), emoji::Emoji::Category::{{ c[0].capitalize() }}},
|
||||
Emoji{std::u16string_view(u"{{ e.code }}"), std::u16string_view(u"{{ e.shortname }}"), std::u16string_view(u"{{ e.unicodename }}"), emoji::Emoji::Category::{{ c[0].capitalize() }}},
|
||||
{%- endfor %}
|
||||
{%- endfor %}
|
||||
};
|
||||
|
|
@ -55,9 +55,9 @@ if __name__ == '__main__':
|
|||
'Flags': flags,
|
||||
'Component': symbols
|
||||
}
|
||||
shortcodeDict = {}
|
||||
shortcodeDict = {}
|
||||
# for my sanity - this strips newlines
|
||||
for line in open(shortcodefilename, 'r', encoding="utf8"):
|
||||
for line in open(shortcodefilename, 'r', encoding="utf8"):
|
||||
longname, shortname = line.strip().split(':')
|
||||
shortcodeDict[longname] = shortname
|
||||
current_category = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue