| 1274 | } |
| 1275 | |
| 1276 | StringHasherRef Document::getStringHasher(const int idx) const |
| 1277 | { |
| 1278 | StringHasherRef hasher; |
| 1279 | if (idx < 0) { |
| 1280 | if (UseHasher.getValue()) { |
| 1281 | return d->Hasher; |
| 1282 | } |
| 1283 | return hasher; |
| 1284 | } |
| 1285 | const auto it = d->hashers.right.find(idx); |
| 1286 | if (it == d->hashers.right.end()) { |
| 1287 | hasher = new StringHasher; |
| 1288 | d->hashers.right.insert(HasherMap::right_map::value_type(idx, hasher)); |
| 1289 | } |
| 1290 | else { |
| 1291 | hasher = it->second; |
| 1292 | } |
| 1293 | return hasher; |
| 1294 | } |
| 1295 | |
| 1296 | struct DocExportStatus |
| 1297 | { |
no test coverage detected