-
Notifications
You must be signed in to change notification settings - Fork 0
/
AProfanityFilter.cs
81 lines (66 loc) · 1.94 KB
/
AProfanityFilter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using Il2CppDummyDll;
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public class AProfanityFilter
{
[FieldOffset(Offset="0x10")]
protected List<AProfanityFilter.BadWord> _badWords;
[FieldOffset(Offset="0x18")]
protected Dictionary<string, List<string>> _falsePositiveMap;
[Address(RVA="0x10F3068", Offset="0x10F3068", VA="0x10F3068")]
public AProfanityFilter()
{
}
[Address(RVA="0x10F26CC", Offset="0x10F26CC", VA="0x10F26CC")]
protected void AddFalsePositiveEntry(string badWord, List<string> allGoodWords)
{
}
[Address(RVA="0x10F1B9C", Offset="0x10F1B9C", VA="0x10F1B9C")]
public bool ContainsProfanity(string text)
{
return new bool();
}
[Address(RVA="0x10F2D50", Offset="0x10F2D50", VA="0x10F2D50")]
private bool IsFalsePositive(AProfanityFilter.BadWord badWord, int badWordIndex, int badWordMatchLen, string originalText, string sanitizedText)
{
return new bool();
}
[Address(RVA="0x10F26C8", Offset="0x10F26C8", VA="0x10F26C8", Slot="4")]
public virtual void LogWarning(string text)
{
}
[Address(RVA="0x10F26C0", Offset="0x10F26C0", VA="0x10F26C0")]
public string ReplaceProfanity(string text)
{
return null;
}
[Address(RVA="0x10F28E8", Offset="0x10F28E8", VA="0x10F28E8")]
private string SanitizeText(string unsanitizedText)
{
return null;
}
[Address(RVA="0x10F1BC8", Offset="0x10F1BC8", VA="0x10F1BC8")]
protected string SearchAndReplace(string text, bool earlyOut)
{
return null;
}
protected class BadWord
{
[FieldOffset(Offset="0x10")]
public string Word;
[FieldOffset(Offset="0x18")]
public bool ExactMatchOnly;
[FieldOffset(Offset="0x20")]
private Regex _regex;
[Address(RVA="0x10F3100", Offset="0x10F3100", VA="0x10F3100")]
public BadWord(string word, bool exactMatchOnly)
{
}
[Address(RVA="0x10F2D2C", Offset="0x10F2D2C", VA="0x10F2D2C")]
public MatchCollection Matches(string originalText, string sanitizedText)
{
return null;
}
}
}