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

◆ constData()

const char * fl::basic_string::constData ( ) const
protected

Definition at line 150 of file basic_string.cpp.hpp.

150 {
151 if (isInline()) {
152 return inlineBufferPtr();
153 } else if (mStorage.is<NotNullStringHolderPtr>()) {
154 return mStorage.get<NotNullStringHolderPtr>()->data();
155 } else if (mStorage.is<ConstLiteral>()) {
156 return mStorage.get<ConstLiteral>().data;
157 } else if (mStorage.is<ConstView>()) {
158 return mStorage.get<ConstView>().data;
159 }
160 return "";
161}
bool isInline() const FL_NOEXCEPT
const char * data() const FL_NOEXCEPT
fl::variant< NotNullStringHolderPtr, ConstLiteral, ConstView > mStorage
char * inlineBufferPtr() FL_NOEXCEPT
fl::not_null< StringHolderPtr > NotNullStringHolderPtr

References data(), inlineBufferPtr(), isInline(), and mStorage.

Referenced by c_str().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: