FastLED 3.9.15
Loading...
Searching...
No Matches

◆ escapeXml()

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

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

597 {
598 if (!text) return fl::string();
599
600 fl::string result;
601 for (const char* p = text; *p; ++p) {
602 switch (*p) {
603 case '&': result += "&"; break;
604 case '<': result += "&lt;"; break;
605 case '>': result += "&gt;"; break;
606 case '"': result += "&quot;"; break;
607 case '\'': result += "&apos;"; break;
608 default: result += *p; break;
609 }
610 }
611 return result;
612}
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References FL_NOEXCEPT.

Referenced by testCaseEnd(), and testRunEnd().

+ Here is the caller graph for this function: