EscapeChars.opCall

Escapes each occurrence of an element of Tokens in str by inserting the escape pattern escape into str before the occurrence.

struct EscapeChars
opCall

Parameters

str mstring

string with characters to escape; changed in-place

escape cstring

escape pattern to prepend to each token occurrence

tokens cstring

List of special characters to escape; empty string indicates to do nothing. '\0' tokens are not allowed.

Return Value

Type: mstring

resulting string

Meta