common: Add auto-caching NickHighlightMatcher
authorShane Synan <digitalcircuit36939@gmail.com>
Sat, 1 Sep 2018 21:33:03 +0000 (16:33 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 3 Sep 2018 20:12:02 +0000 (22:12 +0200)
commit83e64467da81f69bef190f7492f49b6b4e661885
tree827ffe373b080b4566e3832ba70cc718e3bcdf22
parent4adaaaa83ad4f27fa6b9c902eddefcaee664dd32
common: Add auto-caching NickHighlightMatcher

Add NickHighlightMatcher class to unify handling of nick highlight
matching in Quassel, including automatically updating the expression
matcher instance as needed per network.

Cached ExpressionMatch objects are updated on demand after any change
in nickname configuration or active/configured nicks.

This lays the foundation for performance and readibility improvements
in future commits.
src/common/CMakeLists.txt
src/common/nickhighlightmatcher.cpp [new file with mode: 0644]
src/common/nickhighlightmatcher.h [new file with mode: 0644]