Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 421 Bytes

str_replace.sh.md

File metadata and controls

15 lines (13 loc) · 421 Bytes

str_replace

str_replace -- Replaces a substring with another substring.

Replace search with replace in *subject.

Usage

// 1. Function form.
void func::str_replace(string* subject, string search, string replace)
// 2. Command form.
void sub::str_replace(
    string input, string search, string replace) > output
// 3. Stream form.
void stream::str_replace(string search, string replace) < input > output