Lines Matching refs:length
16 String(const char *ptr, std::size_t length)
17 : ptr_(ptr), length_(length) {}
20 String substr(std::size_t pos, std::size_t length) const {
21 MARISA_DEBUG_IF(pos + length > length_, MARISA_PARAM_ERROR);
22 return String(ptr_ + pos, length);
39 std::size_t length() const {
49 if (lhs.length() != rhs.length()) {
52 for (std::size_t i = 0; i < lhs.length(); ++i) {
65 for (std::size_t i = 0; i < lhs.length(); ++i) {
66 if (i == rhs.length()) {
73 return lhs.length() < rhs.length();
85 : ptr_(str.ptr() + str.length() - 1), length_(str.length()) {}
89 RString substr(std::size_t pos, std::size_t length) const {
90 MARISA_DEBUG_IF(pos + length > length_, MARISA_PARAM_ERROR);
93 str.length_ = length;
111 std::size_t length() const {
121 if (lhs.length() != rhs.length()) {
124 for (std::size_t i = 0; i < lhs.length(); ++i) {
137 for (std::size_t i = 0; i < lhs.length(); ++i) {
138 if (i == rhs.length()) {
145 return lhs.length() < rhs.length();