| 2709 | } |
| 2710 | |
| 2711 | bool Value::CZString::operator==(const CZString& other) const { |
| 2712 | if (!cstr_) return index_ == other.index_; |
| 2713 | //return strcmp(cstr_, other.cstr_) == 0; |
| 2714 | // Assume both are strings. |
| 2715 | unsigned this_len = this->storage_.length_; |
| 2716 | unsigned other_len = other.storage_.length_; |
| 2717 | if (this_len != other_len) return false; |
| 2718 | int comp = memcmp(this->cstr_, other.cstr_, this_len); |
| 2719 | return comp == 0; |
| 2720 | } |
| 2721 | |
| 2722 | ArrayIndex Value::CZString::index() const { return index_; } |
| 2723 |
nothing calls this directly
no test coverage detected