diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-09 12:12:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-10 08:27:04 +0100 |
commit | dac7be50cff94e0c34cdca5ac7e35c19685c40c1 (patch) | |
tree | 98c8936c41a03e6e5b15233b0ba04123272232c4 /include/rtl/string.hxx | |
parent | b8f497a06d585dbae3adadb4d177fe84fdb1b5fa (diff) |
o3tl::string_view -> std::string_view (in configmgr)
Change-Id: I64131f59ce859a252baa9c84291d262bcb04fffd
Reviewed-on: https://gerrit.libreoffice.org/66012
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/rtl/string.hxx')
-rw-r--r-- | include/rtl/string.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index cac60d34d8e6..b26aa23e556a 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -28,6 +28,10 @@ #include <ostream> #include <string.h> +#if defined LIBO_INTERNAL_ONLY +#include <string_view> +#endif + #include "rtl/textenc.h" #include "rtl/string.h" #include "rtl/stringutils.hxx" @@ -1787,6 +1791,9 @@ public: return number(d); } +#if defined LIBO_INTERNAL_ONLY + operator std::string_view() const { return {getStr(), sal_uInt32(getLength())}; } +#endif }; /* ======================================================================= */ |