| 156 | } |
| 157 | |
| 158 | int Property(const std::string& name) { |
| 159 | std::string property; |
| 160 | int result; |
| 161 | if (db_->GetProperty(name, &property) && |
| 162 | sscanf(property.c_str(), "%d", &result) == 1) { |
| 163 | return result; |
| 164 | } else { |
| 165 | return -1; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // Return the ith key |
| 170 | Slice Key(int i, std::string* storage) { |
nothing calls this directly
no test coverage detected