| 318 | } |
| 319 | |
| 320 | void StringHeapAllocator::impl_freeString ( char * text, uint64_t length ) { |
| 321 | // Symmetric with impl_allocateString: huge strings are never interned, |
| 322 | // so the erase is a no-op for them. Guard the cast to make that explicit. |
| 323 | if ( needIntern && length <= UINT32_MAX ) internMap.erase(StrHashEntry(text,uint32_t(length))); |
| 324 | impl_free ( text, length + 1 ); |
| 325 | } |
| 326 | |
| 327 | char * presentStr ( char * buf, char * ch, int size ) { |
| 328 | auto str = escapeString(ch); |
no test coverage detected