Bug 1869043 assert that graph set access is main thread only r=padenot
[gecko.git] / xpcom / string / nsAString.h
blob3893ff8e370942073cb8596490096124a31f725f
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"
8 #ifndef nsAString_h___
9 #define nsAString_h___
11 #include "nsStringFwd.h"
12 #include "nsStringIterator.h"
13 #include "mozilla/TypedEnumBits.h"
15 #include <string.h>
16 #include <stdarg.h>
18 #include "nsStringFlags.h"
19 #include "nsTStringRepr.h"
20 #include "nsTSubstring.h"
21 #include "nsTSubstringTuple.h"
23 /**
24 * ASCII case-insensitive comparator. (for Unicode case-insensitive
25 * comparision, see nsUnicharUtils.h)
27 int nsCaseInsensitiveCStringComparator(const char*, const char*, size_t,
28 size_t);
30 class nsCaseInsensitiveCStringArrayComparator {
31 public:
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___)