1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 // IWYU pragma: private, include "nsString.h"
11 #include "nsStringFwd.h"
12 #include "nsStringIterator.h"
13 #include "mozilla/TypedEnumBits.h"
18 #include "nsStringFlags.h"
19 #include "nsTStringRepr.h"
20 #include "nsTSubstring.h"
21 #include "nsTSubstringTuple.h"
24 * ASCII case-insensitive comparator. (for Unicode case-insensitive
25 * comparision, see nsUnicharUtils.h)
27 int nsCaseInsensitiveCStringComparator(const char*, const char*, size_t,
30 class nsCaseInsensitiveCStringArrayComparator
{
32 template <class A
, class B
>
33 bool Equals(const A
& aStrA
, const B
& aStrB
) const {
34 return aStrA
.Equals(aStrB
, nsCaseInsensitiveCStringComparator
);
38 #endif // !defined(nsAString_h___)