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

Function has_escape_sequences

src/fl/stl/json.cpp.hpp:621–628  ·  view source on GitHub ↗

Helper: Check if string contains escape sequences

Source from the content-addressed store, hash-verified

619
620// Helper: Check if string contains escape sequences
621bool has_escape_sequences(const fl::span<const char>& span) {
622 for (size_t i = 0; i < span.size(); i++) {
623 if (span[i] == '\\') {
624 return true;
625 }
626 }
627 return false;
628}
629
630// Helper: Unescape JSON string (only call if has_escape_sequences() returns true)
631fl::string unescape_string(const fl::span<const char>& span) {

Callers 1

on_tokenMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected