diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-10 10:16:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-10 10:16:11 +0200 |
commit | bad606febb291022140cb4fb637005cfafff6f98 (patch) | |
tree | a259f96555aec035ac5a76a980ad3e307ff662b9 /include/o3tl | |
parent | cf59d64ae2f9321845af669678370d68c52b7985 (diff) |
Clean up uses of SAL_U/SAL_W: embedserv
Change-Id: I5a73acf6ccfc1709e95e55fa15c32ec6dda2657a
Diffstat (limited to 'include/o3tl')
-rw-r--r-- | include/o3tl/string_view.hxx | 11 |
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: */ |