collabora-online/common
Caolán McNamara 24317d555f ensure we don't split a utf-8 sequence when logging message
Given a well-formed utf-8 string 'message' of messageLen bytes and a
desire to truncate to approximately abbrevLen bytes return the shortest
string greater or equal to abbrevLen that does not split a utf-8
sequence.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie623d8c1027bb4724485cab5b0bb6d3d1cd3d9ab
2023-08-25 08:41:46 +02:00
..
Authorization.cpp wsd: move tokenizer helpers into StringVector 2022-04-12 07:39:07 -04:00
Authorization.hpp wsd: support invalidating Authorization objects 2022-12-07 15:42:04 +03:00
Clipboard.hpp wsd: cosmetic improvements to ClipboardCache 2023-07-08 04:19:00 -04:00
CommandControl.cpp wsd: new config entry to add unlock_link for feature lock dialog per alias_group 2022-07-20 17:41:19 +05:30
CommandControl.hpp wsd: new config entry to add unlock_link for feature lock dialog per alias_group 2022-07-20 17:41:19 +05:30
Common.hpp wsd: support code-coverage report via --with-coverage 2022-08-02 14:45:12 -04:00
ConfigUtil.cpp introduce new options to customize featurelock dialog 2022-07-20 17:41:19 +05:30
ConfigUtil.hpp introduce new options to customize featurelock dialog 2022-07-20 17:41:19 +05:30
Crypto.cpp wsd: smart pointer cleanup 2023-08-03 08:40:20 +02:00
Crypto.hpp fix license headers 2020-10-01 11:56:43 +02:00
DummyTraceEventEmitter.cpp Re-factor Trace Event stuff for improved functionality and thread safety 2021-06-21 12:43:17 +03:00
FileUtil.cpp Add debug option that allows tile dumping 2023-06-05 08:59:39 +01:00
FileUtil.hpp Add debug option that allows tile dumping 2023-06-05 08:59:39 +01:00
JailUtil.cpp wsd: unmount the test mount directory too 2023-07-08 04:19:00 -04:00
JailUtil.hpp Jail cleanup - include coolwsd pid + hash into a jails sub-directory. 2023-04-25 10:41:57 +01:00
JsonUtil.hpp wsd: exact-match JSON entries first 2023-05-22 09:34:29 -04:00
LangUtil.hpp Fix issue #5841 welcome, feedback, and buy product URLs are empty on mobile 2023-03-15 09:29:56 +01:00
Log.cpp cid#318843 COPY_INSTEAD_OF_MOVE 2023-08-16 15:15:59 +02:00
Log.hpp reduce cost of TileDesc::parse 2023-08-24 22:22:43 +01:00
Message.hpp wsd: detect json arrays in messages 2022-11-20 07:50:12 -05:00
MessageQueue.cpp Kill canceltiles support completely. 2023-06-22 09:35:22 +01:00
MessageQueue.hpp Fix typos in comments 2022-08-23 18:37:44 +02:00
MobileApp.cpp Suppress or fix all iOS compiler warnings without changing any code 2023-05-16 09:43:29 +02:00
MobileApp.hpp Stop using .bmp files for tiles on iOS 2021-09-07 09:59:57 +03:00
Png.hpp cid#318871 Unintentional integer overflow 2023-07-05 14:49:59 +02:00
Protocol.cpp use more string_view 2023-06-15 13:29:04 +02:00
Protocol.hpp ensure we don't split a utf-8 sequence when logging message 2023-08-25 08:41:46 +02:00
Rectangle.hpp fix license headers 2020-10-01 11:56:43 +02:00
RenderTiles.hpp move "combined" bit inside TileCombined class 2023-08-21 20:48:31 +01:00
Seccomp.cpp add and use 'N_ELEMENTS' in lieu of std::size 2023-08-23 12:06:31 +02:00
Seccomp.hpp fix license headers 2020-10-01 11:56:43 +02:00
Session.cpp cid#318842 silence Unchecked return value 2023-08-15 15:09:36 +02:00
Session.hpp Fix getting canonical view id of 1000 2023-08-05 12:00:08 +03:00
SigUtil.cpp wsd: simplify shutdown and termination flagging 2023-08-14 16:32:50 +02:00
SigUtil.hpp Add missing headers that cause compiler errors on newest compilers. 2023-04-27 10:47:29 +03:00
SpookyV2.cpp common: move "hashSubBuffer" function 2022-05-09 16:40:57 +01:00
SpookyV2.h common: move "hashSubBuffer" function 2022-05-09 16:40:57 +01:00
StateEnum.hpp add and use 'N_ELEMENTS' in lieu of std::size 2023-08-23 12:06:31 +02:00
StringVector.cpp wsd: move tokenizer helpers into StringVector 2022-04-12 07:39:07 -04:00
StringVector.hpp Related: #6514 removeCallbackDuplicate only needs up to 4 tokens 2023-06-07 08:54:27 +01:00
TraceEvent.cpp Avoid assertion failure if toggling Trace Event generation back and forth 2021-06-30 12:40:08 +03:00
TraceEvent.hpp wsd: some clang-tidy warning fixes 2023-06-30 21:45:40 +02:00
Unit.cpp Typos: wake-up. 2023-07-17 11:35:25 +02:00
Unit.hpp wsd: better newChild unit-test event 2023-07-08 04:19:00 -04:00
Util.cpp cid#322632 COPY_INSTEAD_OF_MOVE 2023-08-24 08:30:40 +02:00
Util.hpp reduce cost of TileDesc::parse 2023-08-24 22:22:43 +01:00
security.h cid#318910 Logically dead code 2023-06-21 08:40:21 +02:00