libreoffice-online/kit
Miklos Vajna 547f9ea731 Rework StringVector to have a single underlying string
This is meant to reduce lots of small allocations and instead have
pointers into the single string for the various tokens instead.

This has a few requirements, though:

1) It's no longer OK to modify the tokens, changing their length would
invalidate the start/length of other tokens. Rework
DocumentBroker::load() to avoid such mutation.

2) The iterators no longer expose zero-terminated strings, so
Poco::cat() doesn't work anymore: add an own cat() instead and use that
in e.g. ChildSession. The own cat() has the benefit that it won't read
past the end of the array if the begin index is out of bounds to add
more safety.

(This nicely works towards killing Poco usage in general.)

3) If zero-terminated strings for all individual tokens is needed, a
copy has to be made, as done in spawnProcess().

(For all of these requirements, the build fails if there are problems.)

Change-Id: Iea40e4400e630b2d669f5c72aea85cb40edf9a2c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89711
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-02-28 18:31:37 +01:00
..
ChildSession.cpp Rework StringVector to have a single underlying string 2020-02-28 18:31:37 +01:00
ChildSession.hpp Rework LOOLProtocol::tokenize() to return a StringVector object 2020-02-28 16:07:56 +01:00
Delta.hpp
DummyLibreOfficeKit.cpp Rotate Watermarks with 45 degree angle 2019-11-10 23:42:03 +01:00
DummyLibreOfficeKit.hpp
ForKit.cpp Rework StringVector to have a single underlying string 2020-02-28 18:31:37 +01:00
Kit.cpp Rework StringVector to have a single underlying string 2020-02-28 18:31:37 +01:00
Kit.hpp Share the Kit environment setup code. 2020-02-17 14:49:06 +01:00
KitHelper.hpp wsd: leaflet: status now includes selected parts 2019-08-17 04:30:42 +02:00
TestStubs.cpp
Watermark.hpp Fix minor comparison error 2019-11-27 05:34:27 +01:00