| 215 | } |
| 216 | |
| 217 | void 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 | |
| 233 | void FunctionDoc::ParseArguments() |
| 234 | { |
nothing calls this directly
no test coverage detected