This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+35
View File
@@ -0,0 +1,35 @@
/* Copyright 2003-2006 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "Util/ScopedSingleton.h"
namespace RBX {
class WordList
{
private:
std::set<std::string> blacklist;
void decrypt(std::string& str);
public:
WordList();
~WordList();
bool ContainsProfanity(std::string str);
};
class ProfanityFilter : public ScopedSingleton<ProfanityFilter>
{
private:
WordList *wordlist;
bool ContainsProfanityWorker(std::string str);
public:
ProfanityFilter();
~ProfanityFilter();
static bool ContainsProfanity(const std::string& str);
};
} // namespace