Arma Reforger Script API
Loading...
Searching...
No Matches
Static Public Member Functions | Static Protected Attributes | List of all members
SCR_ProfaneFilter Interface Reference

Handles filtering profanities in texts. More...

Static Public Member Functions

static bool ReplaceProfanities (string input, out string output, string replaceChar="*")
 Replace profanities with a same-sized repetition of replaceText char.
 

Static Protected Attributes

static ref array< string > s_aProfanityBlacklist
 profanities must be lowercase
 

Detailed Description

Handles filtering profanities in texts.

Member Function Documentation

◆ 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]inputthe input string, potentially containing profanities
[out]outputthe resulting string, censored
[in]replaceCharmust be ONE character, will be cut to one char or default to * if not provided
Returns
true if profanities were found, false otherwise

Member Data Documentation

◆ 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: