MCPcopy Create free account
hub / github.com/JeremyBYU/polylidar / ParseReturn

Method ParseReturn

src/Python/polylidar_pybind/docstring/docstring.cpp:247–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void FunctionDoc::ParseReturn()
248{
249 size_t arrow_pos = pybind_doc_.rfind(" -> ");
250 if (arrow_pos != std::string::npos)
251 {
252 size_t result_type_pos = arrow_pos + 4;
253 std::string return_type =
254 pybind_doc_.substr(result_type_pos, WordLength(pybind_doc_, result_type_pos, "._:,[]() ,"));
255 return_doc_.type_ = StringCleanAll(return_type);
256 }
257}
258
259std::string FunctionDoc::ToGoogleDocString() const
260{

Callers

nothing calls this directly

Calls 1

WordLengthFunction · 0.85

Tested by

no test coverage detected