unittest/util/utf8/unicodetext.cc
void UnicodeText::Repr::clear() {
  if (ours_)
    delete[] data_;
  data_ = nullptr;
  size_ = capacity_ = 0;
  ours_ = true;
}
// This implementation of clear() deallocates the buffer if we're an owner.
// That's not strictly necessary; we could just set size_ to 0.
This implementation of clear() deallocates the buffer if we're an owner.
That's not strictly necessary; we could just set size_ to 0.
This implementation of clear () deallocates the buffer if we ' re an owner . That ' s not strictly necessary ; we could just set size_ to 0 .
void UnicodeText::Repr::clear() {
  if (ours_)
    delete[] data_;
  data_ = nullptr;
  size_ = capacity_ = 0;
  ours_ = true;
}
void UnicodeText :: Repr :: clear ( ) { if ( ours_ ) delete [ ] data_ ; data_ = nullptr ; size_ = capacity_ = 0 ; ours_ = true ; }
This implementation of clear() deallocates the buffer if we're an owner.
This implementation of clear () deallocates the buffer if we ' re an owner .