Home
last modified time | relevance | path

Searched refs:ours_ (Results 1 – 2 of 2) sorted by relevance

/third_party/libphonenumber/cpp/src/phonenumbers/utf/
Dunicodetext.cc111 if (capacity_ >= new_capacity && ours_) return; in reserve()
120 if (ours_) delete[] data_; // If we owned the old buffer, free it. in reserve()
123 ours_ = true; // We own the new buffer. in reserve()
131 if (!ours_ || new_size > capacity_) reserve(new_size); in resize()
135 ours_ = true; in resize()
142 if (ours_) delete[] data_; in clear()
145 ours_ = true; in clear()
155 if (ours_ && data_) delete[] data_; // If we owned the old buffer, free it. in TakeOwnershipOf()
159 ours_ = true; in TakeOwnershipOf()
163 if (ours_ && data_) delete[] data_; // If we owned the old buffer, free it. in PointTo()
[all …]
Dunicodetext.h337 bool ours_; // Do we own data_? variable
340 Repr() : data_(NULL), size_(0), capacity_(0), ours_(true), utf8_was_valid_(true) {} in Repr()
341 ~Repr() { if (ours_) delete[] data_; } in ~Repr()