/* -*- 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/. */ // IWYU pragma: private, include "nsString.h"
/** * nsTDependentSubstring_CharT * * A string class which wraps an external array of string characters. It * is the client code's responsibility to ensure that the external buffer * remains valid for a long as the string is alive. * * NAMES: * nsDependentSubstring for wide characters * nsDependentCSubstring for narrow characters
*/ template <typename T> class nsTDependentSubstring : public nsTSubstring<T> { public: typedef nsTDependentSubstring<T> self_type; typedef nsTSubstring<T> substring_type; typedeftypename substring_type::fallible_t fallible_t;
// These are only for internal use within the string classes: typedeftypename substring_type::DataFlags DataFlags; typedeftypename substring_type::ClassFlags ClassFlags;
// Create a nsTDependentSubstring to be bound later
nsTDependentSubstring() : substring_type() {}
// auto-generated copy-constructor OK (XXX really?? what about base class // copy-ctor?)
nsTDependentSubstring(const nsTDependentSubstring&) = default;
private: // NOT USED voidoperator=(const self_type&) = delete; // we're immutable, you can't assign into a substring
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.