|
|
|
@ -688,6 +688,21 @@ class NIFObjectLoader
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string::size_type nextpos = std::min(str.find('\r', pos), str.find('\n', pos));
|
|
|
|
|
if(nextpos != std::string::npos)
|
|
|
|
|
{
|
|
|
|
|
do {
|
|
|
|
|
nextpos--;
|
|
|
|
|
} while(nextpos > pos && ::isspace(str[nextpos]));
|
|
|
|
|
nextpos++;
|
|
|
|
|
}
|
|
|
|
|
else if(::isspace(*str.rbegin()))
|
|
|
|
|
{
|
|
|
|
|
std::string::const_iterator last = str.end();
|
|
|
|
|
do {
|
|
|
|
|
last--;
|
|
|
|
|
} while(last != str.begin() && ::isspace(*last));
|
|
|
|
|
nextpos = std::distance(str.begin(), ++last);
|
|
|
|
|
}
|
|
|
|
|
std::string result = str.substr(pos, nextpos-pos);
|
|
|
|
|
textkeys.insert(std::make_pair(tk->list[i].time, Misc::StringUtils::toLower(result)));
|
|
|
|
|
|
|
|
|
|