aboutsummaryrefslogtreecommitdiff
path: root/lib/util.cpp
AgeCommit message (Collapse)Author
2019-04-04Clean up on clang-tidy/clazy analysisKitsune Ral
2019-03-24linkifyUrls(): fix linkification of emails containing "www."Kitsune Ral
Closes #303.
2019-03-21sanitized(): revert to only dropping Unicode RLO/LRO markers (no HTML escaping)Kitsune Ral
Because user display names (in particular) can be used in non-HTML context. Clients should take care about HTML escaping where appropriate.
2019-03-17prettyPrint: do not apply sanitized()Kitsune Ral
Only display names should be sanitized; messages are only HTML-escaped.
2019-03-17RoomMemberEvent: sanitize user display namesKitsune Ral
MemberEventContent::displayName() will strip away Unicode text direction override characters. Direct access to JSON can still provide "raw" data.
2019-02-26Linkify Matrix identifiersKitsune Ral
This is a crude interim implementation until we get new fancy Matrix URIs.
2019-02-26prettyPrint(): only linkify http(s), ftp, mailto, magnet linksKitsune Ral
Closes #278.
2018-12-10Suppress a function_traits<> test with lambdas on MSVC2015Kitsune Ral
Assigning a lambda to a static variable causes it to fail with 'auto must always deduce to the same type' error.
2018-12-08function_traits: more tests, fix function objects/lambdas not working with ↵Kitsune Ral
some compilers A member function reference is not the same as a member function pointer.
2018-12-08function_traits<>: support any arity; add compile-time testsKitsune Ral
2018-11-22Fix QString initialisation from QStringBuilderKitsune Ral
You can't assign a QStringBuilder to auto.
2018-11-22Generalise and expose cacheLocation()Kitsune Ral
2018-07-07Remove [[gnu::const]] from linkifyUrls()Kitsune Ral
It's not a pure function by any account. Closes #377. Also: minor tweaks in util.cpp
2018-06-30Try [[gnu::const]]Kitsune Ral
2018-05-28Move out prettyPrint() from Room to util.hKitsune Ral
So that it could be used outside of room context.