my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

3 years ago
  1. // Copyright 2019 Roman Perepelitsa.
  2. //
  3. // This file is part of GitStatus.
  4. //
  5. // GitStatus is free software: you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation, either version 3 of the License, or
  8. // (at your option) any later version.
  9. //
  10. // GitStatus is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with GitStatus. If not, see <https://www.gnu.org/licenses/>.
  17. #ifndef ROMKATV_GITSTATUS_STRINGS_H_
  18. #define ROMKATV_GITSTATUS_STRINGS_H_
  19. #include <ostream>
  20. namespace gitstatus {
  21. // If the pointers are null, prints nothing.
  22. //
  23. // Requires: !begin == !end.
  24. void CEscape(std::ostream& strm, const char* begin, const char* end);
  25. // If the pointers are null, prints null without quotes.
  26. //
  27. // Requires: !begin == !end.
  28. void Quote(std::ostream& strm, const char* begin, const char* end);
  29. } // namespace gitstatus
  30. #endif // ROMKATV_GITSTATUS_STRING_VIEW_H_