| 349 | } |
| 350 | |
| 351 | int IndexedString::lengthFromIndex(uint index) |
| 352 | { |
| 353 | if (!index) { |
| 354 | return 0; |
| 355 | } else if (isSingleCharIndex(index)) { |
| 356 | return 1; |
| 357 | } else { |
| 358 | return LockedItemRepository::read<IndexedString>([index](const IndexedStringRepository& repo) { |
| 359 | return repo.itemFromIndex(index)->length; |
| 360 | }); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | const char* IndexedString::c_str() const |
| 365 | { |
nothing calls this directly
no test coverage detected