sbkcppstring.h 738 B

12345678910111213141516171819202122
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. #ifndef SBKCPPSTRING_H
  4. #define SBKCPPSTRING_H
  5. #include "sbkpython.h"
  6. #include "shibokenmacros.h"
  7. #include <string>
  8. #include <string_view>
  9. namespace Shiboken::String
  10. {
  11. LIBSHIBOKEN_API PyObject *fromCppString(const std::string &value);
  12. LIBSHIBOKEN_API PyObject *fromCppStringView(std::string_view value);
  13. LIBSHIBOKEN_API PyObject *fromCppWString(const std::wstring &value);
  14. LIBSHIBOKEN_API void toCppString(PyObject *str, std::string *value);
  15. LIBSHIBOKEN_API void toCppWString(PyObject *str, std::wstring *value);
  16. } // namespace Shiboken::String
  17. #endif // SBKCPPSTRING_H