2014-05-05 21:30:46 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2013-09-23 21:23:56 +04:00
|
|
|
// IWYU pragma: private, include "nsString.h"
|
2001-04-02 23:40:52 +04:00
|
|
|
|
|
|
|
#ifndef nsAString_h___
|
|
|
|
#define nsAString_h___
|
|
|
|
|
|
|
|
#include "nsStringFwd.h"
|
|
|
|
#include "nsStringIterator.h"
|
2017-07-10 22:23:10 +03:00
|
|
|
#include "mozilla/TypedEnumBits.h"
|
2001-04-02 23:40:52 +04:00
|
|
|
|
2004-04-25 02:02:22 +04:00
|
|
|
#include <string.h>
|
2012-04-13 20:58:59 +04:00
|
|
|
#include <stdarg.h>
|
2001-04-02 23:40:52 +04:00
|
|
|
|
2017-08-15 00:22:50 +03:00
|
|
|
#include "nsStringFlags.h"
|
|
|
|
#include "nsTStringRepr.h"
|
2008-09-19 19:07:22 +04:00
|
|
|
#include "nsTSubstring.h"
|
2018-02-01 03:45:34 +03:00
|
|
|
#include "nsTSubstringTuple.h"
|
2001-04-02 23:40:52 +04:00
|
|
|
|
2014-05-05 21:30:46 +04:00
|
|
|
/**
|
|
|
|
* ASCII case-insensitive comparator. (for Unicode case-insensitive
|
|
|
|
* comparision, see nsUnicharUtils.h)
|
|
|
|
*/
|
2021-12-14 00:47:56 +03:00
|
|
|
int nsCaseInsensitiveCStringComparator(const char*, const char*, size_t,
|
|
|
|
size_t);
|
2001-04-18 09:20:06 +04:00
|
|
|
|
2008-10-01 04:50:42 +04:00
|
|
|
class nsCaseInsensitiveCStringArrayComparator {
|
2014-05-05 21:30:46 +04:00
|
|
|
public:
|
|
|
|
template <class A, class B>
|
2014-05-27 11:15:35 +04:00
|
|
|
bool Equals(const A& aStrA, const B& aStrB) const {
|
2020-05-27 21:11:12 +03:00
|
|
|
return aStrA.Equals(aStrB, nsCaseInsensitiveCStringComparator);
|
2014-05-05 21:30:46 +04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2001-04-02 23:40:52 +04:00
|
|
|
#endif // !defined(nsAString_h___)
|