Manager for excessive punctuation.
More...
|
void | Load () |
| Loads the current filter with all settings from this object. More...
|
|
bool | Contains (string text) |
| Searches for excessive punctuations in a text. More...
|
|
void | ContainsAsync (string text) |
| Searches asynchronously for excessive punctuations in a text. Use the "OnContainsComplete"-callback to get the result. More...
|
|
System.Collections.Generic.List< string > | GetAll (string text) |
| Searches for excessive punctuations in a text. More...
|
|
void | GetAllAsync (string text) |
| Searches asynchronously for excessive punctuations in a text. Use the "OnGetAllComplete"-callback to get the result. More...
|
|
string | ReplaceAll (string text, bool markOnly=false, string prefix="", string postfix="") |
| Searches and replaces all excessive punctuations in a text. More...
|
|
void | ReplaceAllAsync (string text, bool markOnly=false, string prefix="", string postfix="") |
| Searches and replaces asynchronously all domains in a text. Use the "OnReplaceAllComplete"-callback to get the result. More...
|
|
string | Mark (string text, bool replace=false, string prefix="<b><color=red>", string postfix="</color></b>") |
| Marks the text with a prefix and postfix. More...
|
|
string | Unmark (string text, string prefix="<b><color=red>", string postfix="</color></b>") |
| Unmarks the text with a prefix and postfix. More...
|
|
|
override void | Awake () |
|
override void | OnApplicationQuit () |
|
void | onContainsComplete (string text, bool result) |
|
void | onGetAllComplete (string text, System.Collections.Generic.List< string > badWords) |
|
void | onReplaceAllComplete (string originalText, string cleanText) |
|
Manager for excessive punctuation.
◆ Contains()
bool Crosstales.BWF.Manager.PunctuationManager.Contains |
( |
string |
text | ) |
|
Searches for excessive punctuations in a text.
- Parameters
-
- Returns
- True if a match was found
◆ ContainsAsync()
void Crosstales.BWF.Manager.PunctuationManager.ContainsAsync |
( |
string |
text | ) |
|
Searches asynchronously for excessive punctuations in a text. Use the "OnContainsComplete"-callback to get the result.
- Parameters
-
◆ GetAll()
System.Collections.Generic.List<string> Crosstales.BWF.Manager.PunctuationManager.GetAll |
( |
string |
text | ) |
|
Searches for excessive punctuations in a text.
- Parameters
-
- Returns
- List with all the matches
◆ GetAllAsync()
void Crosstales.BWF.Manager.PunctuationManager.GetAllAsync |
( |
string |
text | ) |
|
Searches asynchronously for excessive punctuations in a text. Use the "OnGetAllComplete"-callback to get the result.
- Parameters
-
◆ Load()
void Crosstales.BWF.Manager.PunctuationManager.Load |
( |
| ) |
|
Loads the current filter with all settings from this object.
◆ Mark()
string Crosstales.BWF.Manager.PunctuationManager.Mark |
( |
string |
text, |
|
|
bool |
replace = false , |
|
|
string |
prefix = "<b><color=red>" , |
|
|
string |
postfix = "</color></b>" |
|
) |
| |
Marks the text with a prefix and postfix.
- Parameters
-
text | Text containing excessive punctuations |
replace | Replace the excessive punctuations (default: false, optional) |
prefix | Prefix for every found punctuation (default: bold and red, optional) |
postfix | Postfix for every found punctuation (default: bold and red, optional) |
- Returns
- Text with marked excessive punctuations
◆ ReplaceAll()
string Crosstales.BWF.Manager.PunctuationManager.ReplaceAll |
( |
string |
text, |
|
|
bool |
markOnly = false , |
|
|
string |
prefix = "" , |
|
|
string |
postfix = "" |
|
) |
| |
Searches and replaces all excessive punctuations in a text.
- Parameters
-
text | Text to check |
markOnly | Only mark the words (default: false, optional) |
prefix | Prefix for every found punctuation (optional) |
postfix | Postfix for every found punctuation (optional) |
- Returns
- Clean text
◆ ReplaceAllAsync()
void Crosstales.BWF.Manager.PunctuationManager.ReplaceAllAsync |
( |
string |
text, |
|
|
bool |
markOnly = false , |
|
|
string |
prefix = "" , |
|
|
string |
postfix = "" |
|
) |
| |
Searches and replaces asynchronously all domains in a text. Use the "OnReplaceAllComplete"-callback to get the result.
- Parameters
-
text | Text to check |
markOnly | Only mark the words (default: false, optional) |
prefix | Prefix for every found punctuation (optional) |
postfix | Postfix for every found punctuation (optional) |
◆ ResetObject()
static void Crosstales.BWF.Manager.PunctuationManager.ResetObject |
( |
| ) |
|
|
static |
◆ PunctuationCharsNumber
int???? Crosstales.BWF.Manager.PunctuationManager.PunctuationCharsNumber |
|
getset |
Defines the number of allowed punctuation letters in a row (default: 3).
The documentation for this class was generated from the following file:
- C:/Users/slaub/Unity/assets/BWFPro/BWFPro/Assets/Plugins/crosstales/BadWordFilter/Scripts/Manager/PunctuationManager.cs