Lines Matching defs:that
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
15 StringSlice::StringSlice(StringSlice&& that)
16 : fPtr(std::move(that.fPtr))
17 , fLength(that.fLength)
18 , fCapacity(that.fCapacity)
20 that.fLength = 0;
21 that.fCapacity = 0;
24 StringSlice& StringSlice::operator=(StringSlice&& that) {
25 if (this != &that) {
27 new (this)StringSlice(std::move(that));
32 StringSlice& StringSlice::operator=(const StringSlice& that) {
33 if (this != &that) {
35 if (that.size() > 0) {
36 this->insert(0, that.begin(), that.size());