MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / replaceAll

Function replaceAll

Extension/src/common.ts:1494–1498  ·  view source on GitHub ↗
(str: string, searchValue: string, replaceValue: string)

Source from the content-addressed store, hash-verified

1492}
1493
1494export function replaceAll(str: string, searchValue: string, replaceValue: string): string {
1495 const pattern: string = escapeStringForRegex(searchValue);
1496 const re: RegExp = new RegExp(pattern, 'g');
1497 return str.replace(re, replaceValue);
1498}
1499
1500export interface ISshHostInfo {
1501 hostName: string;

Callers 2

expandStringFunction · 0.90
expandStringImplFunction · 0.90

Calls 1

escapeStringForRegexFunction · 0.85

Tested by

no test coverage detected