12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef BASE_JSON_STRING_ESCAPE_H_
- #define BASE_JSON_STRING_ESCAPE_H_
- #include <string>
- #include "base/base_export.h"
- #include "base/strings/string_piece.h"
- namespace base {
- BASE_EXPORT bool EscapeJSONString(StringPiece str,
- bool put_in_quotes,
- std::string* dest);
- BASE_EXPORT bool EscapeJSONString(StringPiece16 str,
- bool put_in_quotes,
- std::string* dest);
- BASE_EXPORT std::string GetQuotedJSONString(StringPiece str);
- BASE_EXPORT std::string GetQuotedJSONString(StringPiece16 str);
- BASE_EXPORT std::string EscapeBytesAsInvalidJSONString(StringPiece str,
- bool put_in_quotes);
- }
- #endif
|