Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tstl/benchmark/internal/StringUtil.ts>StringUtil.replaceAll

TypeScript-STL (Standard Template Library, migrated from C++)
Latest
method StringUtil.replaceAll
import { StringUtil } from "https://deno.land/x/tstl@v3.0.0/benchmark/internal/StringUtil.ts";

Returns a string specified word is replaced.

Parameters

str: string

Target string to replace

before: string

Specific word you want to be replaced

after: string

Specific word you want to replace

Returns

string

A string specified word is replaced

Returns a string specified words are replaced.

Parameters

str: string

Target string to replace

...pairs: [string, string][]

A specific word's pairs you want to replace and to be replaced

Returns

string

A string specified words are replaced