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

Method trim

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

Source from the content-addressed store, hash-verified

178}
179
180string string::trim() const FL_NOEXCEPT {
181 fl::size start = 0;
182 fl::size end_pos = size();
183 while (start < size() && fl::isspace(c_str()[start])) start++;
184 while (end_pos > start && fl::isspace(c_str()[end_pos - 1])) end_pos--;
185 return substring(start, end_pos);
186}
187
188#ifdef FL_IS_WASM
189string::string(const std::string& str) // okay std namespace

Callers 12

readSerialStringUntilFunction · 0.80
readLineFunction · 0.80
markdownToHtmlFunction · 0.80
createHelpFunction · 0.80
parseMethod · 0.80
classify_noexcept_lineFunction · 0.80
join_multiline_signatureFunction · 0.80
signature_has_noexceptFunction · 0.80
check_file_contentMethod · 0.80
FL_TEST_FILEFunction · 0.80

Calls 2

isspaceFunction · 0.85
sizeFunction · 0.70

Tested by

no test coverage detected