/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
App/include/gui/ProfanityFilter.h
35 строк
601 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
/* 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