michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et cindent: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: // IWYU pragma: private, include "nsString.h" michael@0: michael@0: #ifndef nsAString_h___ michael@0: #define nsAString_h___ michael@0: michael@0: #include "nsStringFwd.h" michael@0: #include "nsStringIterator.h" michael@0: michael@0: #include michael@0: #include michael@0: michael@0: #include "mozilla/fallible.h" michael@0: michael@0: #define kNotFound -1 michael@0: michael@0: // declare nsAString michael@0: #include "string-template-def-unichar.h" michael@0: #include "nsTSubstring.h" michael@0: #include "string-template-undef.h" michael@0: michael@0: // declare nsACString michael@0: #include "string-template-def-char.h" michael@0: #include "nsTSubstring.h" michael@0: #include "string-template-undef.h" michael@0: michael@0: michael@0: /** michael@0: * ASCII case-insensitive comparator. (for Unicode case-insensitive michael@0: * comparision, see nsUnicharUtils.h) michael@0: */ michael@0: class nsCaseInsensitiveCStringComparator michael@0: : public nsCStringComparator michael@0: { michael@0: public: michael@0: nsCaseInsensitiveCStringComparator() {} michael@0: typedef char char_type; michael@0: michael@0: virtual int operator()( const char_type*, const char_type*, uint32_t, uint32_t ) const; michael@0: }; michael@0: michael@0: class nsCaseInsensitiveCStringArrayComparator michael@0: { michael@0: public: michael@0: template michael@0: bool Equals(const A& a, const B& b) const { michael@0: return a.Equals(b, nsCaseInsensitiveCStringComparator()); michael@0: } michael@0: }; michael@0: michael@0: // included here for backwards compatibility michael@0: #ifndef nsSubstringTuple_h___ michael@0: #include "nsSubstringTuple.h" michael@0: #endif michael@0: michael@0: #endif // !defined(nsAString_h___)