nss: upgrade to release 3.73
[LibreOffice.git] / include / o3tl / string_view.hxx
blobd343befd0efe5aa3d08fc88d81476612ee5a4514
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <sal/config.h>
14 #include <string_view>
16 #include <rtl/ustring.h>
18 namespace o3tl
20 // Like OUString::equalsIgnoreAsciiCase, but for two std::u16string_view:
21 inline bool equalsIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2)
23 return rtl_ustr_compareIgnoreAsciiCase_WithLength(s1.data(), s1.size(), s2.data(), s2.size());
27 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */