Manager for domains.
More...
|
void | Load () |
| Loads the current filter with all settings from this object. More...
|
|
bool | Contains (string text, params string[] sourceNames) |
| Searches for domains in a text. More...
|
|
void | ContainsAsync (string text, params string[] sourceNames) |
| Searches asynchronously for domains in a text. Use the "OnContainsComplete"-callback to get the result. More...
|
|
System.Collections.Generic.List< string > | GetAll (string text, params string[] sourceNames) |
| Searches for domains in a text. More...
|
|
void | GetAllAsync (string text, params string[] sourceNames) |
| Searches asynchronously for domains in a text. Use the "OnGetAllComplete"-callback to get the result. More...
|
|
string | ReplaceAll (string text, bool markOnly=false, string prefix="", string postfix="", params string[] sourceNames) |
| Searches and replaces all domains in a text. More...
|
|
void | ReplaceAllAsync (string text, bool markOnly=false, string prefix="", string postfix="", params string[] sourceNames) |
| 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>", params string[] sourceNames) |
| 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) |
|
◆ Contains()
bool Crosstales.BWF.Manager.DomainManager.Contains |
( |
string |
text, |
|
|
params string[] |
sourceNames |
|
) |
| |
Searches for domains in a text.
- Parameters
-
text | Text to check |
sourceNames | Relevant sources (e.g. "iana", optional) |
- Returns
- True if a match was found
◆ ContainsAsync()
void Crosstales.BWF.Manager.DomainManager.ContainsAsync |
( |
string |
text, |
|
|
params string[] |
sourceNames |
|
) |
| |
Searches asynchronously for domains in a text. Use the "OnContainsComplete"-callback to get the result.
- Parameters
-
text | Text to check |
sourceNames | Relevant sources (e.g. "english", optional) |
◆ GetAll()
System.Collections.Generic.List<string> Crosstales.BWF.Manager.DomainManager.GetAll |
( |
string |
text, |
|
|
params string[] |
sourceNames |
|
) |
| |
Searches for domains in a text.
- Parameters
-
text | Text to check |
sourceNames | Relevant sources (e.g. "iana", optional) |
- Returns
- List with all the matches
◆ GetAllAsync()
void Crosstales.BWF.Manager.DomainManager.GetAllAsync |
( |
string |
text, |
|
|
params string[] |
sourceNames |
|
) |
| |
Searches asynchronously for domains in a text. Use the "OnGetAllComplete"-callback to get the result.
- Parameters
-
text | Text to check |
sourceNames | Relevant sources (e.g. "english", optional) |
◆ Load()
void Crosstales.BWF.Manager.DomainManager.Load |
( |
| ) |
|
Loads the current filter with all settings from this object.
◆ Mark()
string Crosstales.BWF.Manager.DomainManager.Mark |
( |
string |
text, |
|
|
bool |
replace = false , |
|
|
string |
prefix = "<b><color=red>" , |
|
|
string |
postfix = "</color></b>" , |
|
|
params string[] |
sourceNames |
|
) |
| |
Marks the text with a prefix and postfix.
- Parameters
-
text | Text containing domains |
replace | Replace the domains (default: false, optional) |
prefix | Prefix for every found domain (default: bold and red, optional) |
postfix | Postfix for every found domain (default: bold and red, optional) |
sourceNames | Relevant sources (e.g. "iana", optional) |
- Returns
- Text with marked domains
◆ ReplaceAll()
string Crosstales.BWF.Manager.DomainManager.ReplaceAll |
( |
string |
text, |
|
|
bool |
markOnly = false , |
|
|
string |
prefix = "" , |
|
|
string |
postfix = "" , |
|
|
params string[] |
sourceNames |
|
) |
| |
Searches and replaces all domains in a text.
- Parameters
-
text | Text to check |
markOnly | Only mark the words (default: false, optional) |
prefix | Prefix for every found domain (optional) |
postfix | Postfix for every found domain (optional) |
sourceNames | Relevant sources (e.g. "iana", optional) |
- Returns
- Clean text
◆ ReplaceAllAsync()
void Crosstales.BWF.Manager.DomainManager.ReplaceAllAsync |
( |
string |
text, |
|
|
bool |
markOnly = false , |
|
|
string |
prefix = "" , |
|
|
string |
postfix = "" , |
|
|
params string[] |
sourceNames |
|
) |
| |
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 domain (optional) |
postfix | Postfix for every found domain (optional) |
sourceNames | Relevant sources (e.g. "iana", optional) |
◆ ResetObject()
static void Crosstales.BWF.Manager.DomainManager.ResetObject |
( |
| ) |
|
|
static |
◆ Sources
Returns all sources for the manager.
- Returns
- List with all sources for the manager
◆ TotalRegexCount
int Crosstales.BWF.Manager.DomainManager.TotalRegexCount => Sources.Sum(src => src.RegexCount) |
Total number of Regex of all providers and sources.
- Returns
- Total number of Regex of all providers and sources.
◆ DomainProvider
System.Collections.Generic.List<DomainProvider> Crosstales.BWF.Manager.DomainManager.DomainProvider |
|
getset |
List of all domain providers.
◆ ReplaceChars
string??? Crosstales.BWF.Manager.DomainManager.ReplaceChars |
|
getset |
Replace characters for domains.
The documentation for this class was generated from the following file:
- C:/Users/slaub/Unity/assets/BWFPro/BWFPro/Assets/Plugins/crosstales/BadWordFilter/Scripts/Manager/DomainManager.cs