summaryrefslogtreecommitdiff
path: root/include/rtl/ustring.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-09 12:12:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-10 08:27:04 +0100
commitdac7be50cff94e0c34cdca5ac7e35c19685c40c1 (patch)
tree98c8936c41a03e6e5b15233b0ba04123272232c4 /include/rtl/ustring.hxx
parentb8f497a06d585dbae3adadb4d177fe84fdb1b5fa (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/ustring.hxx')
-rw-r--r--include/rtl/ustring.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index 5f738cfaa5fc..bf63efc71723 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -27,6 +27,10 @@
#include <new>
#include <ostream>
+#if defined LIBO_INTERNAL_ONLY
+#include <string_view>
+#endif
+
#include "rtl/ustring.h"
#include "rtl/string.hxx"
#include "rtl/stringutils.hxx"
@@ -3544,6 +3548,10 @@ public:
return OUString( pNew, SAL_NO_ACQUIRE );
}
+#if defined LIBO_INTERNAL_ONLY
+ operator std::u16string_view() const { return {getStr(), sal_uInt32(getLength())}; }
+#endif
+
private:
OUString & internalAppend( rtl_uString* pOtherData )
{