MCPcopy Create free account
hub / github.com/FastLED/FastLED / c_str

Method c_str

src/fl/stl/basic_string.cpp.hpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30// ======= ACCESSORS =======
31
32const char* basic_string::c_str() const {
33 if (mStorage.is<ConstView>()) {
34 const ConstView& view = mStorage.get<ConstView>();
35 if (view.data && view.length > 0 && view.data[view.length] != '\0') {
36 const_cast<basic_string*>(this)->materialize();
37 }
38 }
39 return constData();
40}
41
42char* basic_string::c_str_mutable() {
43 // Inline mode — already mutable

Callers 15

string_viewMethod · 0.45
operator==Method · 0.45
operator!=Method · 0.45
operator<Method · 0.45
operator>Method · 0.45
operator<=Method · 0.45
operator>=Method · 0.45
copyMethod · 0.45
findMethod · 0.45
rfindMethod · 0.45
find_first_ofMethod · 0.45

Calls 1

materializeMethod · 0.80

Tested by

no test coverage detected