MCPcopy Index your code
hub / github.com/JoshData/fast_diff_match_patch / from_string

Method from_string

interface.cpp:22–24  ·  view source on GitHub ↗

Create PyString from underlying char array

Source from the content-addressed store, hash-verified

20
21 // Create PyString from underlying char array
22 static PyObject* from_string(std::string& value) {
23 return PyBytes_FromStringAndSize(value.data(), value.size());
24 }
25};
26
27const char* BytesShim::PyArgFormat = "s*";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected