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

Method copy_no_view

src/fl/stl/string.cpp.hpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67string string::copy_no_view(const string& str) FL_NOEXCEPT {
68 if (str.is_referencing()) {
69 string result;
70 result.copy(str.c_str(), str.size());
71 return result;
72 }
73 return str;
74}
75
76int string::strcmp(const string& a, const string& b) FL_NOEXCEPT {
77 return fl::strcmp(a.c_str(), b.c_str());

Callers

nothing calls this directly

Calls 4

is_referencingMethod · 0.80
copyMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected