mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 04:52:22 +02: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