Home | History | Annotate | Download | only in unicode

Lines Matching refs:length_

55   int32_t       length_;
62 StringPiece() : ptr_(NULL), length_(0) { }
75 : ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { }
83 StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
117 int32_t size() const { return length_; }
123 int32_t length() const { return length_; }
129 UBool empty() const { return length_ == 0; }
135 void clear() { ptr_ = NULL; length_ = 0; }
143 void set(const char* xdata, int32_t len) { ptr_ = xdata; length_ = len; }
159 if (n > length_) {
160 n = length_;
163 length_ -= n;
174 if (n <= length_) {
175 length_ -= n;
177 length_ = 0;