escape_string.hpp 949 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #ifndef BOOST_MYSQL_DETAIL_ESCAPE_STRING_HPP
  8. #define BOOST_MYSQL_DETAIL_ESCAPE_STRING_HPP
  9. #include <boost/mysql/error_code.hpp>
  10. #include <boost/mysql/string_view.hpp>
  11. #include <boost/mysql/detail/config.hpp>
  12. #include <boost/mysql/detail/output_string.hpp>
  13. #include <boost/config.hpp>
  14. namespace boost {
  15. namespace mysql {
  16. // Forward decls
  17. struct format_options;
  18. namespace detail {
  19. BOOST_ATTRIBUTE_NODISCARD BOOST_MYSQL_DECL error_code
  20. escape_string(string_view input, const format_options& opts, char quote_char, output_string_ref output);
  21. } // namespace detail
  22. } // namespace mysql
  23. } // namespace boost
  24. #ifdef BOOST_MYSQL_HEADER_ONLY
  25. #include <boost/mysql/impl/escape_string.ipp>
  26. #endif
  27. #endif