Home
last modified time | relevance | path

Searched refs:alloc_ (Results 1 – 9 of 9) sorted by relevance

/onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/include/
H A DStringOf.cxx17 : length_(length), alloc_(length) in String()
29 : ptr_(0), length_(0), alloc_(0) in String()
35 : length_(s.length_), alloc_(s.length_) in String()
49 if (s.length_ > alloc_) { in operator =()
51 ptr_ = new T[alloc_ = s.length_]; in operator =()
64 if (length_ + s.length_ > alloc_) in insert()
76 if (length_ + length > alloc_) in append()
86 size_t newAlloc = alloc_; in grow()
87 if (alloc_ < n) in grow()
90 newAlloc += alloc_; in grow()
[all …]
H A DVector.cxx34 : ptr_(0), size_(0), alloc_(0) in Vector()
41 : ptr_(0), size_(0), alloc_(0) in Vector()
120 size_t tem = alloc_; in swap()
121 alloc_ = v.alloc_; in swap()
122 v.alloc_ = tem; in swap()
151 size_t newAlloc = alloc_*2; in reserve1()
155 alloc_ = newAlloc; in reserve1()
H A DNCVector.cxx35 : ptr_(0), size_(0), alloc_(0)
42 : ptr_(0), size_(0), alloc_(0)
121 size_t tem = alloc_; in swap()
122 alloc_ = v.alloc_; in swap()
123 v.alloc_ = tem; in swap()
152 size_t newAlloc = alloc_*2; in reserve1()
156 alloc_ = newAlloc; in reserve1()
H A DNCVector.h26 NCVector() : ptr_(0), size_(0), alloc_(0) { } in NCVector()
27 NCVector(size_t n) : ptr_(0), size_(0), alloc_(0) { append(n); } in NCVector()
57 void reserve(size_t n) { if (n > alloc_) reserve1(n); } in reserve()
69 size_t alloc_; // allocated size variable
H A DVector.h25 Vector() : ptr_(0), size_(0), alloc_(0) { } in Vector()
26 Vector(size_t n) : ptr_(0), size_(0), alloc_(0) { append(n); } in Vector()
56 void reserve(size_t n) { if (n > alloc_) reserve1(n); } in reserve()
68 size_t alloc_; // allocated size variable
H A DStringOf.h44 if (length_ >= alloc_)
69 size_t alloc_; variable
H A DEvent.h206 Char *alloc_; variable
/onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/lib/
H A DEvent.cxx129 : DataEvent(type, p, length, location), alloc_(0) in ImmediateDataEvent()
137 if (alloc_) in ~ImmediateDataEvent()
138 delete [] alloc_; in ~ImmediateDataEvent()
143 if (!alloc_) { in copyData()
144 alloc_ = new Char[length_]; in copyData()
145 memcpy(alloc_, p_, length_*sizeof(Char)); in copyData()
146 p_ = alloc_; in copyData()
H A DArcEngine.cxx126 Allocator alloc_; member in SP_NAMESPACE::ArcEngineImpl
185 alloc_(maxSize(sizes, SIZEOF(sizes)), 50), in ArcEngineImpl()
376 alloc_)) { in startElement()
421 .data(new (alloc_) CdataEntityEvent(entity->asInternalEntity(), in data()
425 .data(new (alloc_) ImmediateDataEvent(event->type(), in data()
449 .sdataEntity(new (alloc_) in sdataEntity()
479 .externalDataEntity(new (alloc_) in externalDataEntity()
508 arcProcessors_[i].processEndElement(*event, alloc_); in endElement()