/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */ #include "nsString.h" // This file provides concrete instantiations for externed string template // classes and functions. // ================ // Template classes // ================ template class mozilla::detail::nsTStringRepr; template class mozilla::detail::nsTStringRepr; template class nsTLiteralString; template class nsTLiteralString; template class nsTSubstring; template class nsTSubstring; template class nsTDependentSubstring; template class nsTDependentSubstring; // Note: nsTString is skipped as it's implicitly instantiated by derived // classes. template class nsTAutoStringN; template class nsTAutoStringN; template class nsTDependentString; template class nsTDependentString; template class nsTPromiseFlatString; template class nsTPromiseFlatString; template class nsTSubstringSplitter; template class nsTSubstringSplitter; template class nsTDefaultStringComparator; template class nsTDefaultStringComparator; // ============================= // Templated top-level functions // ============================= template int NS_FASTCALL Compare(mozilla::detail::nsTStringRepr const&, mozilla::detail::nsTStringRepr const&, nsTStringComparator const&); template int NS_FASTCALL Compare(mozilla::detail::nsTStringRepr const&, mozilla::detail::nsTStringRepr const&, nsTStringComparator const&); template nsTDependentSubstring const Substring(char const*, char const*); template nsTDependentSubstring const Substring( char16_t const*, char16_t const*); // ========================================================= // Templated member functions that are conditionally enabled // ========================================================= template int32_t nsTString::Find(const self_type&, int32_t, int32_t) const; template int32_t nsTString::Find(const char_type*, int32_t, int32_t) const; template int32_t nsTString::RFind(const self_type&, int32_t, int32_t) const; template int32_t nsTString::RFind(const char_type*, int32_t, int32_t) const; template int32_t nsTString::FindCharInSet(const char*, int32_t) const; namespace mozilla { namespace detail { template int32_t nsTStringRepr::Compare(const char_type*, bool, int32_t) const; template bool nsTStringRepr::EqualsIgnoreCase( const incompatible_char_type*, int32_t) const; } // namespace detail } // namespace mozilla template bool nsTString::StripChars(const incompatible_char_type*, const fallible_t&); template void nsTString::StripChars(const incompatible_char_type*); template void nsTString::ReplaceChar(const char*, char16_t);