diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-02-25 02:32:27 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-01-19 21:37:46 +0000 |
commit | 3af5cab0547fc7c6a82d94e8a2104f1b052ccd7d (patch) | |
tree | 544ca6119abae93cb65ef7b67db5b4f984f608c4 /src/network/access/qhsts.cpp | |
parent | a6cdfacf8d9c646333e81693e73e2c74173ad29a (diff) |
Long live QStaticByteArrayMatcher!
This is a version of QByteArrayMatcher that calculates the
Boyer-Moore skip table at compile-time instead of at run-time,
making this class more generally applicable than QByteArray-
Matcher itself, at least for statically-known strings.
The compile-time part requires C++14 constexpr support, but
the class should compile and work even in C++98 mode, just
with runtime initialization of the skip-table.
While touching tst_qbytearraymatcher, clean up the static
global QByteArrayMatchers there and add tests with needles
longer than 255 characters for QByteArrayMatcher, too.
[ChangeLog][QtCore] Added QStaticByteArrayMatcher.
Change-Id: I0662f262ab19b79ae4096f3ab384d5b3ada72347
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/network/access/qhsts.cpp')
0 files changed, 0 insertions, 0 deletions