mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Added a test with special chars
This commit is contained in:
@@ -39,6 +39,25 @@ void StringBuilder::appendEscaped(const char* s)
|
||||
append("\\\\");
|
||||
break;
|
||||
|
||||
case '\b':
|
||||
append("\\b");
|
||||
break;
|
||||
|
||||
case '\f':
|
||||
append("\\f");
|
||||
break;
|
||||
|
||||
case '\n':
|
||||
append("\\n");
|
||||
break;
|
||||
|
||||
case '\r':
|
||||
append("\\r");
|
||||
break;
|
||||
|
||||
case '\t':
|
||||
append("\\t");
|
||||
break;
|
||||
|
||||
default:
|
||||
buffer[length++] = *s;
|
||||
|
||||
Reference in New Issue
Block a user