xpcom/string/public/nsStringFwd.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/string/public/nsStringFwd.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,63 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/* nsStringFwd.h --- forward declarations for string classes */
    1.10 +
    1.11 +#ifndef nsStringFwd_h___
    1.12 +#define nsStringFwd_h___
    1.13 +
    1.14 +#include "nscore.h"
    1.15 +
    1.16 +#ifndef MOZILLA_INTERNAL_API
    1.17 +#error Internal string headers are not available from external-linkage code.
    1.18 +#endif
    1.19 +
    1.20 +  /**
    1.21 +   * double-byte (char16_t) string types
    1.22 +   */
    1.23 +
    1.24 +class nsAString;
    1.25 +class nsSubstringTuple;
    1.26 +class nsString;
    1.27 +class nsAutoString;
    1.28 +class nsDependentString;
    1.29 +class nsDependentSubstring;
    1.30 +class nsPromiseFlatString;
    1.31 +class nsStringComparator;
    1.32 +class nsDefaultStringComparator;
    1.33 +class nsXPIDLString;
    1.34 +
    1.35 +
    1.36 +  /**
    1.37 +   * single-byte (char) string types
    1.38 +   */
    1.39 +
    1.40 +class nsACString;
    1.41 +class nsCSubstringTuple;
    1.42 +class nsCString;
    1.43 +class nsAutoCString;
    1.44 +class nsDependentCString;
    1.45 +class nsDependentCSubstring;
    1.46 +class nsPromiseFlatCString;
    1.47 +class nsCStringComparator;
    1.48 +class nsDefaultCStringComparator;
    1.49 +class nsXPIDLCString;
    1.50 +
    1.51 +
    1.52 +  /**
    1.53 +   * typedefs for backwards compatibility
    1.54 +   */
    1.55 +
    1.56 +typedef nsAString             nsSubstring;
    1.57 +typedef nsACString            nsCSubstring;
    1.58 +
    1.59 +typedef nsString              nsAFlatString;
    1.60 +typedef nsSubstring           nsASingleFragmentString;
    1.61 +
    1.62 +typedef nsCString             nsAFlatCString;
    1.63 +typedef nsCSubstring          nsASingleFragmentCString;
    1.64 +
    1.65 +  
    1.66 +#endif /* !defined(nsStringFwd_h___) */

mercurial