| 1512 | |
| 1513 | #if !SZ_AVOID_STL |
| 1514 | inline void raise(status_t status) noexcept(false) { |
| 1515 | switch (status) { |
| 1516 | case status_t::bad_alloc_k: throw std::bad_alloc(); |
| 1517 | case status_t::invalid_utf8_k: throw std::invalid_argument("Invalid UTF-8 string"); |
| 1518 | case status_t::contains_duplicates_k: throw std::invalid_argument("Array contains identical strings"); |
| 1519 | default: break; |
| 1520 | } |
| 1521 | } |
| 1522 | |
| 1523 | #endif |
| 1524 |
no outgoing calls
no test coverage detected
searching dependent graphs…