Changed: Replaced strlwr by toLower
This commit is contained in:
parent
5f0a674ad2
commit
3318485d58
3 changed files with 8 additions and 8 deletions
|
@ -966,7 +966,7 @@ uint32 CStringManager::translateTitle(const std::string &title, TLanguages lang
|
|||
{
|
||||
const std::string colName("name");
|
||||
const CStringManager::CEntityWords &ew = getEntityWords(language, STRING_MANAGER::title);
|
||||
std::string rowName = NLMISC::strlwr(title);
|
||||
std::string rowName = NLMISC::toLower(title);
|
||||
uint32 stringId;
|
||||
stringId = ew.getStringId(rowName, colName);
|
||||
|
||||
|
|
|
@ -428,7 +428,7 @@ CStringManager::CEntityWords CStringManager::parseEntityWords(const ucstring &st
|
|||
for (i=1; i<ws.size(); ++i)
|
||||
{
|
||||
// on the first col, we uncapitalize the id
|
||||
ws.setData(i, 0, ucstring(NLMISC::strlwr(ws.getData(i, 0).toString())));
|
||||
ws.setData(i, 0, ucstring(NLMISC::toLower(ws.getData(i, 0).toString())));
|
||||
|
||||
ew._RowInfo.insert(make_pair(ws.getData(i, 0).toString(), i-1));
|
||||
for (uint j=0; j<ws.ColCount; ++j)
|
||||
|
@ -802,7 +802,7 @@ bool CStringManager::parseTag(const CPhrase &phrase, const ucstring &tag, TRepla
|
|||
nlwarning("Error reading tag property in the tag [%s]", tag.toString().c_str());
|
||||
return false;
|
||||
}
|
||||
spec = NLMISC::strlwr(spec);
|
||||
spec = NLMISC::toLower(spec);
|
||||
}
|
||||
else
|
||||
spec = "name";
|
||||
|
@ -1098,7 +1098,7 @@ bool CStringManager::parseParamList(ucstring::const_iterator &it, ucstring::cons
|
|||
nlwarning("Error parsing parameter %u type in param list", count);
|
||||
return false;
|
||||
}
|
||||
type = NLMISC::strlwr(type);
|
||||
type = NLMISC::toLower(type);
|
||||
|
||||
NLMISC::CI18N::skipWhiteSpace(it, last);
|
||||
if (!NLMISC::CI18N::parseLabel(it, last, name))
|
||||
|
|
|
@ -1835,11 +1835,11 @@ void CMissionData::parseMissionHeader(NLLIGO::IPrimitive *prim)
|
|||
// _MissionTitle.init(*this, prim, vs);
|
||||
_MissionDescriptionRaw = getPropertyArray(prim, "mission_description", false, false);
|
||||
// _MissionDescription.init(*this, prim, vs);
|
||||
_MonoInstance = strlwr(getProperty(prim, "mono_instance", true, false)) == "true";
|
||||
_RunOnce = strlwr(getProperty(prim, "run_only_once", true, false)) == "true";
|
||||
_Replayable = strlwr(getProperty(prim, "replayable", true, false)) == "true";
|
||||
_MonoInstance = toLower(getProperty(prim, "mono_instance", true, false)) == "true";
|
||||
_RunOnce = toLower(getProperty(prim, "run_only_once", true, false)) == "true";
|
||||
_Replayable = toLower(getProperty(prim, "replayable", true, false)) == "true";
|
||||
|
||||
_NeedValidation = strlwr(getProperty(prim, "need_validation", true, false)) == "true";
|
||||
_NeedValidation = toLower(getProperty(prim, "need_validation", true, false)) == "true";
|
||||
|
||||
_MissionAutoMenuRaw = getPropertyArray(prim, "phrase_auto_menu", false, false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue