Skip to content

Commit

Permalink
V 0.71
Browse files Browse the repository at this point in the history
  • Loading branch information
enadream committed Jan 4, 2023
1 parent 73805fb commit 397a3de
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 158 deletions.
1 change: 0 additions & 1 deletion dict/nouns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Tuna , Tuna
Quiz , Quizzes
Index , Indices
########## DATA BASE ##########
'hood
a'man
a-bomb
a-horizon
Expand Down
4 changes: 2 additions & 2 deletions dict/verbs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3797,7 +3797,7 @@ fossilise
fossilize
foster
foul
found
found /U0
founder
fowl
fox
Expand Down Expand Up @@ -5541,7 +5541,7 @@ occidentalize
occlude
occult
occupy
occur
occur /DL
odorize
odourise
off
Expand Down
4 changes: 2 additions & 2 deletions src/ecli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void Ecli::Start() {

auto printHeader = []() {
SetColor(3);
std::cout << "__________________ Welcome to the ChatBot (V0.70 @enadream) __________________\n\n" << std::endl;
std::cout << "__________________ Welcome to the ChatBot (V0.71 @enadream) __________________\n\n" << std::endl;
SetColor(7);
};

Expand Down Expand Up @@ -175,7 +175,7 @@ void Ecli::Start() {
}
else {
WordToken a;
mainHandler.ParseMultithread(params[0].value, true, a);
mainHandler.ParseMultiple(params[0].value, true, a);
}

std::cout << "\n";
Expand Down
147 changes: 0 additions & 147 deletions src/helper.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Eren ALPAR enadream.com
* APP VERSION 0.70
* APP VERSION 0.71
* C++ VERSION 17
*/

Expand Down
6 changes: 3 additions & 3 deletions src/main_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace handle {

if (tempLine.Length() > 0) {
// Parse each line
ParseMultithread(tempLine, false, word);
ParseMultiple(tempLine, false, word);
// Write word to file
util::IntToStr(out_str, lineNumber);
out_str.Append("- ", 2);
Expand Down Expand Up @@ -215,7 +215,7 @@ namespace handle {
}
}

void MainHandler::ParseMultithread(const String& raw_word, const bool print_result, WordToken& word) { // Multithread parser
void MainHandler::ParseMultiple(const String& raw_word, const bool print_result, WordToken& word) { // Multithread parser
util::Array<int32, 11> result;
String outStrs[result.GetSize()];

Expand Down Expand Up @@ -284,7 +284,7 @@ namespace handle {
words.push_back(WordToken());
words.back().data = &tokenize.sentences[i][j];
// Parse token
ParseMultithread(tokenize.sentences[i][j], false, words.back());
ParseMultiple(tokenize.sentences[i][j], false, words.back());
}
// Words to string
out_str += "\n\x1b[38;5;198m[SENTENCE ";
Expand Down
3 changes: 1 addition & 2 deletions src/main_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

namespace handle {


class MainHandler {
private: // variables
noun::NounHandler noun;
Expand Down Expand Up @@ -49,7 +48,7 @@ namespace handle {
MainHandler() = default;
void Read(const WordType type, String& dir);
void Delete(const WordType type);
void ParseMultithread(const String& raw_word, const bool print_result, WordToken& word);
void ParseMultiple(const String& raw_word, const bool print_result, WordToken& word);
void ParseWithType(const WordType type, const String& str);
void ParseSentence(const String& str);
void PrintResult(const WordType type, const int32& result, const String& str);
Expand Down

0 comments on commit 397a3de

Please sign in to comment.