Lines Matching defs:buf
485 char buf[len];
489 bool isOnStack() const { return (buf[last] & 128) == 0; }
519 return reinterpret_cast<char*>(buf);
3216 void String::setOnHeap() { *reinterpret_cast<unsigned char*>(&buf[last]) = 128; }
3217 void String::setLast(unsigned in) { buf[last] = char(in); }
3222 memcpy(buf, other.buf, len);
3233 buf[0] = '\0';
3249 memcpy(buf, in, in_size);
3250 buf[in_size] = '\0';
3283 memcpy(buf + my_old_size, other.c_str(), other_size + 1);
3290 memcpy(temp, buf, my_old_size); // skip the +1 ('\0') for speed
3331 memcpy(buf, other.buf, len);
3332 other.buf[0] = '\0';
3341 memcpy(buf, other.buf, len);
3342 other.buf[0] = '\0';
3354 return reinterpret_cast<char*>(buf)[i];
3361 return last - (unsigned(buf[last]) & 31); // using "last" would work only if "len" is 32
3520 char buf[64]; \
3521 std::sprintf(buf, fmt, in); \
3522 return buf; \