function GPBJsonWire::jsonNiceEscape
1 call to GPBJsonWire::jsonNiceEscape()
- GPBJsonWire::escapedJson in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBJsonWire.php
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBJsonWire.php, line 231
Class
Namespace
Google\Protobuf\InternalCode
private static function jsonNiceEscape($c) {
switch ($c) {
case '"':
return "\\\"";
case '\\':
return "\\\\";
case '/':
return "\\/";
case '\\b':
return "\\b";
case '\\f':
return "\\f";
case '\\n':
return "\\n";
case '\\r':
return "\\r";
case '\\t':
return "\\t";
default:
return NULL;
}
}