Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/utf8/
Dunicodetext.cc32 if (ours_ && data_) delete[] data_; in operator =()
36 ours_ = src.ours_; in operator =()
37 src.ours_ = false; in operator =()
42 if (ours_ && data_) delete[] data_; // If we owned the old buffer, free it. in PointTo()
46 ours_ = false; in PointTo()
58 if (!ours_ || new_size > capacity_) reserve(new_size); in resize()
62 ours_ = true; in resize()
68 if (capacity_ >= new_capacity && ours_) return; in reserve()
77 if (ours_) delete[] data_; // If we owned the old buffer, free it. in reserve()
80 ours_ = true; // We own the new buffer. in reserve()
[all …]
Dunicodetext.h195 bool ours_; // Do we own data_? variable
197 Repr() : data_(nullptr), size_(0), capacity_(0), ours_(true) {} in Repr()
200 if (ours_) delete[] data_; in ~Repr()