Support ConstCharArrayDetector also for UTF-16 arrays

Desktop / LibreOffice - Stephan Bergmann [redhat.com] - 29 August 2016 06:44 UTC

The long-term benefit will be support of C++11 char16_t string literals (for cases of string literals with non-ASCII content) once we drop any compilers that don't support those yet. The short-term benefit is support for an improved OUStringLiteral1 that accepts any sal_Unicode value, not just ASCII ones (see next commit).

Change-Id: I3f8f6697d7eb62b5176b7e812b5a5113c53b83a4 Reviewed-on: https://gerrit.libreoffice.org/28445

0c8fa58 Support ConstCharArrayDetector also for UTF-16 arrays
config_host/config_global.h.in | 1 +
configure.ac | 14 +
include/rtl/stringconcat.hxx | 9 +
include/rtl/stringutils.hxx | 13 +
include/rtl/ustrbuf.hxx | 74 +++
include/rtl/ustring.h | 223 +++++++++
include/rtl/ustring.hxx | 520 ++++++++++++++++++++
.../rtl/strings/test_oustring_stringliterals.cxx | 73 +++
sal/rtl/ustring.cxx | 203 ++++++++
sal/util/sal.map | 11 +
10 files changed, 1141 insertions(+)

Upstream: cgit.freedesktop.org


  • Share