LibreOffice Module o3tl (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
include
o3tl
string_view.hxx
Go to the documentation of this file.
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.
4
*
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
*/
9
10
#pragma once
11
12
#include <
sal/config.h
>
13
14
#include <string_view>
15
16
#include <rtl/ustring.h>
17
18
namespace
o3tl
19
{
20
// Like OUString::equalsIgnoreAsciiCase, but for two std::u16string_view:
21
inline
bool
equalsIgnoreAsciiCase
(std::u16string_view s1, std::u16string_view s2)
22
{
23
return
rtl_ustr_compareIgnoreAsciiCase_WithLength(s1.data(), s1.size(), s2.data(), s2.size());
24
};
25
}
26
27
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
config.h
o3tl
o3tl::equalsIgnoreAsciiCase
bool equalsIgnoreAsciiCase(std::u16string_view s1, std::u16string_view s2)
Definition:
string_view.hxx:21
Generated on Sat Mar 6 2021 08:59:58 for LibreOffice Module o3tl (master) by
1.8.10