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

◆ intern()

string & fl::string::intern ( )

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

377 {
378 // Skip interning if using inline storage (SSO) - already efficient, no heap allocation
379 if (isInline()) {
380 return *this;
381 }
382
383 // Intern via global interner - replaces this string with deduplicated version
384 *this = global_interner().intern(*this);
385 return *this;
386}
fl::string intern(const string_view &sv)
bool isInline() const FL_NOEXCEPT
StringInterner & global_interner()

References fl::global_interner(), fl::StringInterner::intern(), and fl::basic_string::isInline().

+ Here is the call graph for this function: