| 642 | } |
| 643 | |
| 644 | void Preference::loadWhiteBlackList() { |
| 645 | std::string contentBlack = fastbotx::Preference::loadFileContent(BlackListFilePath); |
| 646 | if (contentBlack.empty()) |
| 647 | return; |
| 648 | std::vector<std::string> texts; |
| 649 | splitString(contentBlack, texts, '\n'); |
| 650 | this->_blackList.swap(texts); |
| 651 | BLOG("blacklist :\n %s", contentBlack.c_str()); |
| 652 | std::string contentWhite = fastbotx::Preference::loadFileContent(WhiteListFilePath); |
| 653 | std::vector<std::string> textsw; |
| 654 | splitString(contentWhite, textsw, '\n'); |
| 655 | this->_whiteList.swap(textsw); |
| 656 | BLOG("whitelist :\n %s", contentWhite.c_str()); |
| 657 | } |
| 658 | |
| 659 | ///Load texts for input from specified file of designed text or file of fuzzing text |
| 660 | void Preference::loadInputTexts() { |
nothing calls this directly
no test coverage detected