| 45 | } |
| 46 | |
| 47 | inline int StringValue::Compare(const StringValue& other) const { |
| 48 | SimpleString this_s = ToSimpleString(); |
| 49 | SimpleString other_s = other.ToSimpleString(); |
| 50 | int l = std::min(this_s.len, other_s.len); |
| 51 | if (l == 0) { |
| 52 | if (this_s.len == other_s.len) { |
| 53 | return 0; |
| 54 | } else if (this_s.len == 0) { |
| 55 | return -1; |
| 56 | } else { |
| 57 | DCHECK_EQ(other_s.len, 0); |
| 58 | return 1; |
| 59 | } |
| 60 | } |
| 61 | return StringCompare(this_s.ptr, this_s.len, other_s.ptr, other_s.len, l); |
| 62 | } |
| 63 | |
| 64 | inline bool StringValue::Eq(const StringValue& other) const { |
| 65 | SimpleString this_s = ToSimpleString(); |
nothing calls this directly
no test coverage detected