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/. */
7 /* nsStringFwd.h --- forward declarations for string classes */
9 #ifndef nsStringFwd_h___
10 #define nsStringFwd_h___
14 #ifndef MOZILLA_INTERNAL_API
15 #error Internal string headers are not available from external-linkage code.
19 * double-byte (char16_t) string types
23 class nsSubstringTuple
;
26 class nsDependentString
;
27 class nsDependentSubstring
;
28 class nsPromiseFlatString
;
29 class nsStringComparator
;
30 class nsDefaultStringComparator
;
35 * single-byte (char) string types
39 class nsCSubstringTuple
;
42 class nsDependentCString
;
43 class nsDependentCSubstring
;
44 class nsPromiseFlatCString
;
45 class nsCStringComparator
;
46 class nsDefaultCStringComparator
;
51 * typedefs for backwards compatibility
54 typedef nsAString nsSubstring
;
55 typedef nsACString nsCSubstring
;
57 typedef nsString nsAFlatString
;
58 typedef nsSubstring nsASingleFragmentString
;
60 typedef nsCString nsAFlatCString
;
61 typedef nsCSubstring nsASingleFragmentCString
;
64 #endif /* !defined(nsStringFwd_h___) */