synchronise with old cold

This commit is contained in:
Hieu Hoang 2016-01-18 21:17:20 +00:00
parent f470b90645
commit 98fe921443

View File

@ -57,6 +57,11 @@ std::vector<unsigned char> splitWordAll1(const StringPiece &textin)
const char delim2[] = "-";
std::vector<unsigned char> output;
//Case with no word alignments.
if (textin.size() == 0) {
return output;
}
//Split on space
util::TokenIter<util::MultiCharacter> it(textin, util::MultiCharacter(delim));