MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / toPyString

Function toPyString

src/Base/PyObjectBase.h:110–113  ·  view source on GitHub ↗

* @brief Make a Py::String out of a std::string_view. */ If upstream PyCXX ever gets an std::string_view constructor for Py::String, this can be trivially swapped out for that constructor.

Source from the content-addressed store, hash-verified

108// If upstream PyCXX ever gets an std::string_view constructor for Py::String,
109// this can be trivially swapped out for that constructor.
110inline Py::String toPyString(std::string_view utf8)
111{
112 return { utf8.data(), Py_ssize_t(utf8.size()) };
113}
114
115}
116

Callers 12

supportedTypesMethod · 0.85
supportedPropertiesMethod · 0.85
getTypeIdOfPropertyMethod · 0.85
getLinkPropertyInfoMethod · 0.85
createInstanceMethod · 0.85
getAllDerivedFromMethod · 0.85
supportedPropertiesMethod · 0.85
getCameraMethod · 0.85
listNavigationTypesMethod · 0.85
getNavigationTypeMethod · 0.85
reprMethod · 0.85
getModeInfoMethod · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected