/src/mozilla-central/xpcom/string/nsTString.cpp
Line | Count | Source |
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/. */ |
6 | | |
7 | | template <typename T> |
8 | | void |
9 | | nsTString<T>::Rebind(const char_type* data, size_type length) |
10 | 11.5k | { |
11 | 11.5k | // If we currently own a buffer, release it. |
12 | 11.5k | this->Finalize(); |
13 | 11.5k | |
14 | 11.5k | this->SetData(const_cast<char_type*>(data), length, DataFlags::TERMINATED); |
15 | 11.5k | this->AssertValidDependentString(); |
16 | 11.5k | } Unexecuted instantiation: nsTString<char>::Rebind(char const*, unsigned int) nsTString<char16_t>::Rebind(char16_t const*, unsigned int) Line | Count | Source | 10 | 11.5k | { | 11 | 11.5k | // If we currently own a buffer, release it. | 12 | 11.5k | this->Finalize(); | 13 | 11.5k | | 14 | 11.5k | this->SetData(const_cast<char_type*>(data), length, DataFlags::TERMINATED); | 15 | 11.5k | this->AssertValidDependentString(); | 16 | 11.5k | } |
|
17 | | |