FastLED 3.10.6
Loading...
Searching...
No Matches

◆ escapeXml()

fl::string fl::test::XMLReporter::escapeXml ( const char * text)
staticprivate

Definition at line 606 of file fltest.cpp.hpp.

606 {
607 if (!text) return fl::string();
608
609 fl::string result;
610 for (const char* p = text; *p; ++p) {
611 switch (*p) {
612 case '&': result += "&"; break;
613 case '<': result += "&lt;"; break;
614 case '>': result += "&gt;"; break;
615 case '"': result += "&quot;"; break;
616 case '\'': result += "&apos;"; break;
617 default: result += *p; break;
618 }
619 }
620 return result;
621}
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References fl::FL_NO_EXCEPT.

Referenced by testCaseEnd(), and testRunEnd().

+ Here is the caller graph for this function: