libreoffice-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
Authorization.hpp
Clipboard.hpp wsd: cosmetic improvements to ClipboardCache 2023-07-08 04:19:00 -04:00
CommandControl.cpp
CommandControl.hpp
Common.hpp
ConfigUtil.cpp
ConfigUtil.hpp
Crypto.cpp wsd: smart pointer cleanup 2023-08-03 08:40:20 +02:00
Crypto.hpp
DummyTraceEventEmitter.cpp
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
JsonUtil.hpp wsd: exact-match JSON entries first 2023-05-22 09:34:29 -04:00
LangUtil.hpp
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
MessageQueue.cpp Kill canceltiles support completely. 2023-06-22 09:35:22 +01:00
MessageQueue.hpp
MobileApp.cpp Suppress or fix all iOS compiler warnings without changing any code 2023-05-16 09:43:29 +02:00
MobileApp.hpp
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
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
security.h cid#318910 Logically dead code 2023-06-21 08:40:21 +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
SpookyV2.h
StateEnum.hpp add and use 'N_ELEMENTS' in lieu of std::size 2023-08-23 12:06:31 +02:00
StringVector.cpp
StringVector.hpp Related: #6514 removeCallbackDuplicate only needs up to 4 tokens 2023-06-07 08:54:27 +01:00
TraceEvent.cpp
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