Lines Matching defs:length
312 int length = -1);
317 int length = -1);
321 int length = -1);
358 inline bool StringEqualNoCaseN(const char* a, const char* b, size_t length);
393 CHECK_LT(index, length());
398 CHECK_LT(index, length());
402 size_t length() const {
415 // Content of the buffer in the range [0, length()) is preserved.
418 void SetLength(size_t length) {
420 CHECK_LE(length, capacity());
421 length_ = length;
424 void SetLengthAndZeroTerminate(size_t length) {
426 CHECK_LE(length + 1, capacity());
427 SetLength(length);
430 buf_[length] = T();
465 // Default to a zero-length, null-terminated buffer.
478 inline std::basic_string<T> ToString() const { return {out(), length()}; }
480 return {out(), length()};
510 inline size_t length() const { return length_; }
543 inline std::string ToString() const { return std::string(out(), length()); }