| 46 | } |
| 47 | |
| 48 | string string::interned(const char* str, fl::size len) FL_NOEXCEPT { |
| 49 | if (!str || len == 0) return string(); |
| 50 | // Route through the global interner so identical content |
| 51 | // returns the same shared StringHolder (O(1) average lookup, |
| 52 | // matches `string::intern()`'s semantics). Previously this |
| 53 | // family wrapped a fresh StringHolder per call with no |
| 54 | // deduplication — see #2961 CR thread + the follow-on commit. |
| 55 | return global_interner().intern(fl::string_view(str, len)); |
| 56 | } |
| 57 | |
| 58 | string string::interned(const char* str) FL_NOEXCEPT { |
| 59 | if (!str) return string(); |
nothing calls this directly
no test coverage detected