FastLED 3.9.15
Loading...
Searching...
No Matches

◆ interned() [2/3]

string fl::string::interned ( const char * str,
fl::size len )
static

Definition at line 48 of file string.cpp.hpp.

48 {
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}
fl::string intern(const string_view &sv)
string() FL_NOEXCEPT
StringInterner & global_interner()

References string(), FL_NOEXCEPT, fl::global_interner(), and fl::StringInterner::intern().

+ Here is the call graph for this function: