the faster implementation of changeWords is brokes; have to revert. Yay im sad

compileTime
John Jekel 5 years ago
parent b1082e5cb8
commit 34493fc5e3
  1. 11
      include/anslatortray.hpp

@ -69,6 +69,7 @@
#include <cctype>
//#include <cstring>
//#include <iterator>
#include <sstream>
/** \namespace anslatortray
@ -255,6 +256,7 @@ namespace anslatortray
std::string newWords {""};
std::string word {""};
/*//dang it it's broken i really wish it wasent but ok i guess
std::string::size_type tokenStartIndex {words.find_first_not_of(Characters::WHITESPACE)};
std::string::size_type tokenEndIndex {words.find_first_of(Characters::WHITESPACE, tokenStartIndex)};
@ -276,6 +278,15 @@ namespace anslatortray
tokenStartIndex = {words.find_first_not_of(Characters::WHITESPACE, tokenEndIndex)};//find the next start of a token after whitespace
tokenEndIndex = {words.find_first_of(Characters::WHITESPACE, tokenStartIndex)};//fin the next whitespace after start of token
}
*/
std::stringstream wordStream {words};
while (wordStream >> word)//tokenize words
{
newWords += {wordChanger(word)};
newWords += {" "};
}
return newWords;

Loading…
Cancel
Save