mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
35 lines
601 B
C++
35 lines
601 B
C++
/* 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
|