Lines Matching refs:size
44 AString::AString(const char *s, size_t size)
48 setTo(s, size);
55 setTo(from, 0, from.size());
71 setTo(from, 0, from.size());
77 size_t AString::size() const {
93 void AString::setTo(const char *s, size_t size) {
95 append(s, size);
168 void AString::append(const char *s, size_t size) {
171 if (mSize + size + 1 > mAllocSize) {
172 mAllocSize = (mAllocSize + size + 31) & -32;
177 memcpy(&mData[mSize], s, size);
178 mSize += size;
183 append(from.c_str(), from.size());
254 CHECK_LE(start, size());
266 insert(from.c_str(), from.size(), insertionPos);
269 void AString::insert(const char *from, size_t size, size_t insertionPos) {
275 if (mSize + size + 1 > mAllocSize) {
276 mAllocSize = (mAllocSize + size + 31) & -32;
281 memmove(&mData[insertionPos + size],
284 memcpy(&mData[insertionPos], from, size);
286 mSize += size;