EscapedString.h 447 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Arduino JSON library
  3. * Benoit Blanchon 2014 - MIT License
  4. */
  5. #pragma once
  6. #include "Print.h"
  7. namespace ArduinoJson
  8. {
  9. namespace Internals
  10. {
  11. class EscapedString
  12. {
  13. public:
  14. void set(const char* s)
  15. {
  16. rawString = s;
  17. }
  18. size_t printTo(Print&) const;
  19. private:
  20. const char* rawString;
  21. };
  22. }
  23. }