knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::py::string_view_to_python_str Struct Reference

#include <string_view.h>

Static Public Member Functions

static PyObject * convert (std::string_view s)
 
static PyObject * convert (std::string_view s)
 

Detailed Description

Definition at line 11 of file string_view.h.

Member Function Documentation

◆ convert() [1/2]

static PyObject* knowrob::py::string_view_to_python_str::convert ( std::string_view  s)
inlinestatic

Definition at line 12 of file string_view.h.

12  {
13  return PyUnicode_FromStringAndSize(s.data(), s.size());
14  }

◆ convert() [2/2]

static PyObject* knowrob::py::string_view_to_python_str::convert ( std::string_view  s)
inlinestatic

Definition at line 12 of file string_view.h.

12  {
13  return PyUnicode_FromStringAndSize(s.data(), s.size());
14  }

The documentation for this struct was generated from the following file: