| 245 | } |
| 246 | |
| 247 | void 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 | |
| 259 | std::string FunctionDoc::ToGoogleDocString() const |
| 260 | { |
nothing calls this directly
no test coverage detected