summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/fileurl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/fileurl.cxx')
-rw-r--r--comphelper/source/misc/fileurl.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/comphelper/source/misc/fileurl.cxx b/comphelper/source/misc/fileurl.cxx
index 4f361ab4ba7a..2515b28c5b30 100644
--- a/comphelper/source/misc/fileurl.cxx
+++ b/comphelper/source/misc/fileurl.cxx
@@ -21,7 +21,11 @@
#include <comphelper/fileurl.hxx>
#include <rtl/ustring.hxx>
+#include <o3tl/string_view.hxx>
-bool comphelper::isFileUrl(OUString const& url) { return url.startsWithIgnoreAsciiCase("file:"); }
+bool comphelper::isFileUrl(std::u16string_view url)
+{
+ return o3tl::matchIgnoreAsciiCase(url, "file:");
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */