summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-02 16:36:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-03 16:30:01 +0200
commit8bf380f7d33f39eaa4cb96b38a82ac18e589deef (patch)
tree64b6809f8fe45243a762095d903f91cb093ecf77 /sal/rtl
parenta56474374b7a5aeacf41419fc1a6c99007cd7483 (diff)
add o3tl::matchIgnoreAsciiCase
Change-Id: Iad8e1ed256d84808404bf20ed7a16b05b3db5818 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133753 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/bootstrap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index a0de8b92102b..68e219406cc4 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -63,11 +63,11 @@ namespace
struct Bootstrap_Impl;
-char const VND_SUN_STAR_PATHNAME[] = "vnd.sun.star.pathname:";
+constexpr std::u16string_view VND_SUN_STAR_PATHNAME = u"vnd.sun.star.pathname:";
-bool isPathnameUrl(OUString const & url)
+bool isPathnameUrl(std::u16string_view url)
{
- return url.matchIgnoreAsciiCase(VND_SUN_STAR_PATHNAME);
+ return o3tl::matchIgnoreAsciiCase(url, VND_SUN_STAR_PATHNAME);
}
bool resolvePathnameUrl(OUString * url)
@@ -75,7 +75,7 @@ bool resolvePathnameUrl(OUString * url)
OSL_ASSERT(url);
if (!isPathnameUrl(*url) ||
(osl::FileBase::getFileURLFromSystemPath(
- url->copy(RTL_CONSTASCII_LENGTH(VND_SUN_STAR_PATHNAME)), *url) ==
+ url->copy(VND_SUN_STAR_PATHNAME.size()), *url) ==
osl::FileBase::E_None))
{
return true;