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

Method ParseSummary

src/Python/polylidar_pybind/docstring/docstring.cpp:217–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void FunctionDoc::ParseSummary()
218{
219 size_t arrow_pos = pybind_doc_.rfind(" -> ");
220 if (arrow_pos != std::string::npos)
221 {
222 size_t result_type_pos = arrow_pos + 4;
223 size_t summary_start_pos = result_type_pos + WordLength(pybind_doc_, result_type_pos, "._:,[]() ,");
224 size_t summary_len = pybind_doc_.size() - summary_start_pos;
225 if (summary_len > 0)
226 {
227 std::string summary = pybind_doc_.substr(summary_start_pos, summary_len);
228 summary_ = StringCleanAll(summary);
229 }
230 }
231}
232
233void FunctionDoc::ParseArguments()
234{

Callers

nothing calls this directly

Calls 1

WordLengthFunction · 0.85

Tested by

no test coverage detected