Handles filtering profanities in texts.
More...
|
static bool | ReplaceProfanities (string input, out string output, string replaceChar="*") |
| Replace profanities with a same-sized repetition of replaceText char.
|
|
Handles filtering profanities in texts.
◆ ReplaceProfanities()
static bool SCR_ProfaneFilter.ReplaceProfanities |
( |
string |
input, |
|
|
out string |
output, |
|
|
string |
replaceChar = "*" |
|
) |
| |
|
static |
Replace profanities with a same-sized repetition of replaceText char.
- Parameters
-
[in] | input | the input string, potentially containing profanities |
[out] | output | the resulting string, censored |
[in] | replaceChar | must be ONE character, will be cut to one char or default to * if not provided |
- Returns
- true if profanities were found, false otherwise
◆ s_aProfanityBlacklist
ref array<string> SCR_ProfaneFilter.s_aProfanityBlacklist |
|
staticprotected |
profanities must be lowercase
The documentation for this interface was generated from the following file:
- Game/Utilities/SCR_ProfaneFilter.c