| 325 | } |
| 326 | |
| 327 | string replace_ellipse(const string& signature_part, size_t pos, size_t nnew, const string& new_symbols) |
| 328 | { |
| 329 | stringstream sstr; |
| 330 | for (auto i : Range(pos)) |
| 331 | sstr << signature_part[i]; |
| 332 | for (auto i : Range(nnew)) |
| 333 | sstr << new_symbols[i]; |
| 334 | |
| 335 | auto offset = pos + 3; |
| 336 | auto nremain = signature_part.size() - offset; |
| 337 | for (auto i : Range(nremain)) |
| 338 | sstr << signature_part[i + offset]; |
| 339 | |
| 340 | return sstr.str(); |
| 341 | } |
| 342 | |
| 343 | pair<string,string> expand_ellipse(string signature_part, const shared_ptr<CoefficientFunction> cf, |
| 344 | const string& existing_symbols, string ellipse_symbols = "") |
no test coverage detected