(name: string)
| 511 | * identically. A name with no template args passes through unchanged. |
| 512 | */ |
| 513 | export function stripCppTemplateArgs(name: string): string { |
| 514 | if (!name.includes('<')) return name; |
| 515 | let out = ''; |
| 516 | let depth = 0; |
| 517 | for (const ch of name) { |
| 518 | if (ch === '<') depth++; |
| 519 | else if (ch === '>') { if (depth > 0) depth--; } |
| 520 | else if (depth === 0) out += ch; |
| 521 | } |
| 522 | return out.trim(); |
| 523 | } |
| 524 | |
| 525 | |
| 526 | /** |
no outgoing calls
no test coverage detected