Home | History | Annotate | Download | only in marisa_alpha

Lines Matching refs:length_

10   String() : ptr_(NULL), length_(0) {}
11 explicit String(const char *str) : ptr_(str), length_(0) {
12 while (str[length_] != '\0') {
13 ++length_;
17 : ptr_(ptr), length_(length) {}
18 String(const String &str) : ptr_(str.ptr_), length_(str.length_) {}
21 MARISA_ALPHA_DEBUG_IF(pos + length > length_, MARISA_ALPHA_PARAM_ERROR);
27 length_ = str.length_;
32 MARISA_ALPHA_DEBUG_IF(i >= length_, MARISA_ALPHA_PARAM_ERROR);
40 return length_;
45 std::size_t length_;
83 : ptr_(static_cast<const char *>(NULL) - 1), length_(0) {}
85 : ptr_(str.ptr() + str.length() - 1), length_(str.length()) {}
87 : ptr_(str.ptr_), length_(str.length_) {}
90 MARISA_ALPHA_DEBUG_IF(pos + length > length_, MARISA_ALPHA_PARAM_ERROR);
93 str.length_ = length;
99 length_ = str.length_;
104 MARISA_ALPHA_DEBUG_IF(i >= length_, MARISA_ALPHA_PARAM_ERROR);
109 return ptr_ - length_ + 1;
112 return length_;
117 std::size_t length_;