Skip to content

refactor: use string views for emote lookup - #7200

Merged
pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:feat/transparent-emotes
Aug 28, 2026
Merged

pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:feat/transparent-emotes

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

#7194 added view types for our aliases and this PR uses them for emote lookup. Most of this only changes the parameter types. Notably, it makes MessageBuilder::tryAppendEmote and the input highlighter's isEmote accept a view.

It's not much yet, since other parts still expect owned strings.

@pajlada
pajlada merged commit dbc3973 into Chatterino:master Aug 28, 2026
18 checks passed
babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
Chatterino#7194 added view types for our aliases and this PR uses them for emote
lookup. Most of this only changes the parameter types. Notably, it makes
`MessageBuilder::tryAppendEmote` and the input highlighter's `isEmote`
accept a view.

It's not much yet, since other parts still expect owned strings.

Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants