blankout
Change every non-whitespace character to the given char. Used in the templatize function.
def blankout(
src: string,
char: string
) - > string
Change every non-whitespace character to the given char. Used in the templatize function.
Parameters
| Name | Type | Description |
|---|---|---|
| src | string | The source string containing the text to be masked |
| char | string | The replacement character used to mask each non-whitespace character in the source string |
Returns
| Type | Description |
|---|---|
string | The modified string where all non-whitespace characters have been replaced by the specified character |