summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-10 10:16:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-10 10:16:11 +0200
commitbad606febb291022140cb4fb637005cfafff6f98 (patch)
treea259f96555aec035ac5a76a980ad3e307ff662b9 /include
parentcf59d64ae2f9321845af669678370d68c52b7985 (diff)
Clean up uses of SAL_U/SAL_W: embedserv
Change-Id: I5a73acf6ccfc1709e95e55fa15c32ec6dda2657a
Diffstat (limited to 'include')
-rw-r--r--include/o3tl/string_view.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/o3tl/string_view.hxx b/include/o3tl/string_view.hxx
index 9230909b7edf..ae284b20173d 100644
--- a/include/o3tl/string_view.hxx
+++ b/include/o3tl/string_view.hxx
@@ -862,6 +862,17 @@ template<> struct hash<o3tl::wstring_view> {
}
+namespace o3tl {
+
+// LO-specific convenience functions:
+
+// For std::u16string_view, this will be provided by a (LIBO_INTERNAL_ONLY)
+// rtl::OUString constructor:
+inline OUString toOUString(u16string_view s)
+{ return OUString(s.data(), s.size()); }
+
+}
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */