mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
fahhh
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user