Changed: Replaced NLMISC::strlwr by NLMISC::toLower

This commit is contained in:
kervala 2011-06-05 17:52:40 +02:00
parent 6697eba484
commit 51263d7d6a
17 changed files with 59 additions and 66 deletions

View file

@ -77,7 +77,7 @@ std::string IActionHandler::getParam (const string &Params, const string &ParamN
std::string::size_type e = allparam.find('='); std::string::size_type e = allparam.find('=');
if (e == std::string::npos || e == 0) break; if (e == std::string::npos || e == 0) break;
std::string::size_type p = allparam.find('|'); std::string::size_type p = allparam.find('|');
string tmp = strlwr(allparam.substr(0,e)); string tmp = NLMISC::toLower(allparam.substr(0,e));
skipBlankAtEnd(tmp); skipBlankAtEnd(tmp);
if (tmp == param) if (tmp == param)
{ {
@ -103,7 +103,7 @@ void IActionHandler::getAllParams (const string &Params, vector< pair<string,str
std::string::size_type e = allparam.find('='); std::string::size_type e = allparam.find('=');
if (e == std::string::npos || e == 0) break; if (e == std::string::npos || e == 0) break;
std::string::size_type p = allparam.find('|'); std::string::size_type p = allparam.find('|');
string tmp = strlwr(allparam.substr(0,e)); string tmp = NLMISC::toLower(allparam.substr(0,e));
skipBlankAtEnd(tmp); skipBlankAtEnd(tmp);
string tmp2 = allparam.substr(e+1,p-e-1); string tmp2 = allparam.substr(e+1,p-e-1);

View file

@ -1684,7 +1684,7 @@ void CBotChatPageTrade::setupFactionPointPrice(bool /* sellMode */, uint default
// setup icon according to pvp clan // setup icon according to pvp clan
CInterfaceManager *pIM= CInterfaceManager::getInstance(); CInterfaceManager *pIM= CInterfaceManager::getInstance();
strlwr(factionName); factionName = NLMISC::toLower(factionName);
string factionIcon= pIM->getDefine(toString("faction_icon_%s", factionName.c_str())); string factionIcon= pIM->getDefine(toString("faction_icon_%s", factionName.c_str()));
CViewBitmap *vBmp= dynamic_cast<CViewBitmap*>(fpGroup->getView("unit_price:item_price:icone")); CViewBitmap *vBmp= dynamic_cast<CViewBitmap*>(fpGroup->getView("unit_price:item_price:icone"));
if(vBmp) vBmp->setTexture(factionIcon); if(vBmp) vBmp->setTexture(factionIcon);

View file

@ -92,8 +92,7 @@ bool CCtrlBase::parse (xmlNodePtr cur, CInterfaceGroup *parentGroup)
prop = (char*) xmlGetProp( cur, (xmlChar*)"on_tooltip" ); prop = (char*) xmlGetProp( cur, (xmlChar*)"on_tooltip" );
if (prop) if (prop)
{ {
_OnContextHelp= (const char*)prop; _OnContextHelp= NLMISC::toLower(std::string((const char*)prop));
NLMISC::strlwr(_OnContextHelp);
} }
prop = (char*) xmlGetProp( cur, (xmlChar*)"on_tooltip_params" ); prop = (char*) xmlGetProp( cur, (xmlChar*)"on_tooltip_params" );
if (prop) if (prop)

View file

@ -160,21 +160,18 @@ bool CCtrlBaseButton::parse (xmlNodePtr cur,CInterfaceGroup * parentGroup)
prop = (char*) xmlGetProp( cur, (xmlChar*)"menu_l" ); prop = (char*) xmlGetProp( cur, (xmlChar*)"menu_l" );
if (prop) if (prop)
{ {
string tmp = (const char *) prop; _ListMenuLeft = NLMISC::toLower(std::string((const char *) prop));
_ListMenuLeft = strlwr(tmp);
} }
prop = (char*) xmlGetProp( cur, (xmlChar*)"menu_r" ); prop = (char*) xmlGetProp( cur, (xmlChar*)"menu_r" );
if (prop) if (prop)
{ {
string tmp = (const char *) prop; _ListMenuRight = NLMISC::toLower(std::string((const char *) prop));
_ListMenuRight = strlwr(tmp);
} }
// list menu on both clicks // list menu on both clicks
prop = (char*) xmlGetProp( cur, (xmlChar*)"menu_b" ); prop = (char*) xmlGetProp( cur, (xmlChar*)"menu_b" );
if (prop) if (prop)
{ {
string tmp = (const char *) prop; setListMenuBoth(NLMISC::toLower(std::string((const char *) prop)));
setListMenuBoth(strlwr(tmp));
} }
prop= (char*) xmlGetProp (cur, (xmlChar*)"frozen"); prop= (char*) xmlGetProp (cur, (xmlChar*)"frozen");

View file

@ -85,7 +85,7 @@ bool CInterfaceOptions::parse (xmlNodePtr cur)
} }
else else
{ {
string name = strlwr (string((const char*)ptr)); string name = NLMISC::toLower(string((const char*)ptr));
string value = (string((const char*)val)); string value = (string((const char*)val));
_ParamValue[name].init(value); _ParamValue[name].init(value);
} }

View file

@ -1225,9 +1225,8 @@ void CStringManagerClient::initI18NSpecialWords(const std::string &languageCode)
const ucstring &key= ws.getData(j, keyColIndex); const ucstring &key= ws.getData(j, keyColIndex);
const ucstring &name= ws.getData(j, nameColIndex); const ucstring &name= ws.getData(j, nameColIndex);
// Append to the I18N. // Append to the I18N.
string keyStr= key.toString();
// avoid case problems // avoid case problems
strlwr(keyStr); string keyStr= NLMISC::toLower(key.toString());
// append the special key extension. // append the special key extension.
keyStr+= keyExtenstion; keyStr+= keyExtenstion;

View file

@ -586,7 +586,7 @@ void CGroupNpc::addParameter(std::string const& parameter)
std::string key, tail; std::string key, tail;
// force lowercase // force lowercase
std::string p = NLMISC::strlwr(parameter); std::string p = NLMISC::toLower(parameter);
AI_SHARE::stringToKeywordAndTail(p, key, tail); AI_SHARE::stringToKeywordAndTail(p, key, tail);
breakable breakable

View file

@ -648,7 +648,7 @@ DEFINE_ACTION_TEMPLATE1(ContextOutpostGroupDesc,GT_GPRM,FamilyT)
string param; string param;
args[i].get(param); args[i].get(param);
param = strlwr(param); param = NLMISC::toLower(param);
if ( param == "contact camp" if ( param == "contact camp"
|| param == "contact outpost" || param == "contact outpost"

View file

@ -1053,7 +1053,7 @@ DEFINE_ACTION_TEMPLATE1(ContextGroupDesc,GT_GPRM,FamilyT)
std::string param; std::string param;
args[i].get(param); args[i].get(param);
param = NLMISC::strlwr(param); param = NLMISC::toLower(param);
if ( param == "contact camp" if ( param == "contact camp"
|| param == "contact outpost" || param == "contact outpost"

View file

@ -85,8 +85,8 @@ void CContinentContainer::loadContinent(string name, string file, sint index, bo
for (its=_SheetMap.begin(); its!=_SheetMap.end(); ++its) for (its=_SheetMap.begin(); its!=_SheetMap.end(); ++its)
{ {
if (strlwr((*its).second.Name) == strlwr(name+".continent") || if (NLMISC::toLower((*its).second.Name) == NLMISC::toLower(name+".continent") ||
strlwr((*its).second.PacsRBank) == strlwr(name+".rbank")) NLMISC::toLower((*its).second.PacsRBank) == NLMISC::toLower(name+".rbank"))
{ {
if (found == _SheetMap.end()) if (found == _SheetMap.end())
{ {
@ -264,14 +264,14 @@ void CContinentContainer::initPacsPrim(const string &path)
for(k=0; k<fileNames.size(); ++k) for(k=0; k<fileNames.size(); ++k)
{ {
// check extension // check extension
if (strlwr(CFile::getExtension(fileNames[k])) != "pacs_prim") if (NLMISC::toLower(CFile::getExtension(fileNames[k])) != "pacs_prim")
{ {
// not a pacs primitive, skip it.. // not a pacs primitive, skip it..
continue; continue;
} }
try try
{ {
string ppName = strlwr(CFile::getFilenameWithoutExtension(fileNames[k])); string ppName = NLMISC::toLower(CFile::getFilenameWithoutExtension(fileNames[k]));
if (_PacsPrimMap.find(ppName) != _PacsPrimMap.end()) if (_PacsPrimMap.find(ppName) != _PacsPrimMap.end())
continue; continue;
@ -348,8 +348,8 @@ void CContinentContainer::loadPacsPrims(const CSheet &sheet, NLPACS::UMoveContai
{ {
TPacsPrimMap::iterator pbIt; TPacsPrimMap::iterator pbIt;
string shapeName = strlwr(CFile::getFilenameWithoutExtension(igLoader.getShapeName(k))); string shapeName = NLMISC::toLower(CFile::getFilenameWithoutExtension(igLoader.getShapeName(k)));
string instanceName = strlwr(CFile::getFilenameWithoutExtension(igLoader.getInstanceName(k))); string instanceName = NLMISC::toLower(CFile::getFilenameWithoutExtension(igLoader.getInstanceName(k)));
bool isTrigger = false; bool isTrigger = false;
bool isZC = false; bool isZC = false;

View file

@ -1850,15 +1850,15 @@ void CMissionData::parseMissionHeader(NLLIGO::IPrimitive *prim)
else if (s == "guild") else if (s == "guild")
_Guild = true; _Guild = true;
_NotInJournal = strlwr(getProperty(prim, "not_in_journal", false, false)) == "true"; _NotInJournal = NLMISC::toLower(getProperty(prim, "not_in_journal", false, false)) == "true";
_AutoRemoveFromJournal = strlwr(getProperty(prim, "auto_remove_from_journal", false, false)) == "true"; _AutoRemoveFromJournal = NLMISC::toLower(getProperty(prim, "auto_remove_from_journal", false, false)) == "true";
_MissionCategory = getProperty(prim, "mission_category", false, false); _MissionCategory = getProperty(prim, "mission_category", false, false);
_PlayerReplayTimer = atoi(getProperty(prim, "player_replay_timer", true, false).c_str()); NLMISC::fromString(getProperty(prim, "player_replay_timer", true, false), _PlayerReplayTimer);
_GlobalReplayTimer = atoi(getProperty(prim, "global_replay_timer", true, false).c_str()); NLMISC::fromString(getProperty(prim, "global_replay_timer", true, false), _GlobalReplayTimer);
_NotProposed = strlwr(getProperty(prim, "not_proposed", false, false)) == "true"; _NotProposed = NLMISC::toLower(getProperty(prim, "not_proposed", false, false)) == "true";
_MissionAuto = strlwr(getProperty(prim, "automatic", false, false)) == "true"; _MissionAuto = NLMISC::toLower(getProperty(prim, "automatic", false, false)) == "true";
_NonAbandonnable = strlwr(getProperty(prim, "non_abandonnable", false, false)) == "true"; _NonAbandonnable = NLMISC::toLower(getProperty(prim, "non_abandonnable", false, false)) == "true";
_FailIfInventoryIsFull = strlwr(getProperty(prim, "fail_if_inventory_is_full", false, false)) == "true"; _FailIfInventoryIsFull = NLMISC::toLower(getProperty(prim, "fail_if_inventory_is_full", false, false)) == "true";
_MissionIcon = getProperty(prim, "mission_icon", false, false); _MissionIcon = getProperty(prim, "mission_icon", false, false);
if (_MissionAuto) if (_MissionAuto)

View file

@ -373,7 +373,7 @@ public:
string s; string s;
s = md.getProperty(prim, "hide_others", true, false); s = md.getProperty(prim, "hide_others", true, false);
_HideOthers = (strlwr(s) == "true"); _HideOthers = (NLMISC::toLower(s) == "true");
} }
string genCode(CMissionData &md) string genCode(CMissionData &md)
@ -673,7 +673,7 @@ public:
string s; string s;
s = md.getProperty(prim, "group", true, false); s = md.getProperty(prim, "group", true, false);
_Group = (strlwr(s) == "true"); _Group = (NLMISC::toLower(s) == "true");
IStepContent::init(md, prim); IStepContent::init(md, prim);
@ -741,7 +741,7 @@ public:
string s; string s;
s = md.getProperty(prim, "group", true, false); s = md.getProperty(prim, "group", true, false);
_Group = (strlwr(s) == "true"); _Group = (NLMISC::toLower(s) == "true");
IStepContent::init(md, prim); IStepContent::init(md, prim);
} }
@ -908,7 +908,7 @@ public:
string s; string s;
s = md.getProperty(prim, "group", true, false); s = md.getProperty(prim, "group", true, false);
_Group = (strlwr(s) == "true"); _Group = (NLMISC::toLower(s) == "true");
IStepContent::init(md, prim); IStepContent::init(md, prim);
} }
@ -965,7 +965,7 @@ public:
string s; string s;
s = md.getProperty(prim, "group", true, false); s = md.getProperty(prim, "group", true, false);
_Group = (strlwr(s) == "true"); _Group = (NLMISC::toLower(s) == "true");
IStepContent::init(md, prim); IStepContent::init(md, prim);
} }
@ -1114,7 +1114,7 @@ public:
_WorldPosition = md.getProperty(prim, "world_position", true, false); _WorldPosition = md.getProperty(prim, "world_position", true, false);
string s; string s;
prim->getPropertyByName("once", s); prim->getPropertyByName("once", s);
_Once = (strlwr(s) == "true"); _Once = (NLMISC::toLower(s) == "true");
} }
string genCode(CMissionData &md) string genCode(CMissionData &md)
@ -2863,7 +2863,7 @@ public:
{ {
_GroupName = md.getProperty(prim, "group_to_escort", true, false); _GroupName = md.getProperty(prim, "group_to_escort", true, false);
string s = md.getProperty(prim, "save_all", true, false); string s = md.getProperty(prim, "save_all", true, false);
_SaveAll = (strlwr(s) == "true"); _SaveAll = (NLMISC::toLower(s) == "true");
CContentObjective::init(md, prim); CContentObjective::init(md, prim);
} }

View file

@ -519,7 +519,7 @@ public:
formDate = 0; formDate = 0;
// In the map ? // In the map ?
string formShortName = strlwr (CFile::getFilename (formName)); string formShortName = NLMISC::toLower(CFile::getFilename (formName));
map<string, CValue >::iterator ite = _FormMap.find (formShortName); map<string, CValue >::iterator ite = _FormMap.find (formShortName);
if (ite == _FormMap.end ()) if (ite == _FormMap.end ())
{ {
@ -606,7 +606,7 @@ void addPointPrimitive (CLandscape &landscape, const char *primFilename, uint32
if (point->getPropertyByName ("form", plantFilename)) if (point->getPropertyByName ("form", plantFilename))
{ {
// Add an extension // Add an extension
if (strlwr (CFile::getExtension (plantFilename)) != "plant") if (NLMISC::toLower(CFile::getExtension (plantFilename)) != "plant")
plantFilename += ".plant"; plantFilename += ".plant";
// Load this form // Load this form
@ -661,7 +661,7 @@ void addPointPrimitive (CLandscape &landscape, const char *primFilename, uint32
instance.Scale = CVector (scale, scale, scale); instance.Scale = CVector (scale, scale, scale);
instance.nParent = -1; instance.nParent = -1;
instance.Name = shape; instance.Name = shape;
instance.InstanceName = strlwr (CFile::getFilename (plantFilename)); instance.InstanceName = NLMISC::toLower(CFile::getFilename (plantFilename));
// Get the instance group ref // Get the instance group ref
CIgContainer::CIG &instances = igs.get (x, y); CIgContainer::CIG &instances = igs.get (x, y);
@ -817,7 +817,7 @@ int main (int argc, char**argv)
callback.progress ((float)i/(float)files.size ()); callback.progress ((float)i/(float)files.size ());
// Zonew ? // Zonew ?
if (strlwr (CFile::getExtension (files[i])) == "zonew") if (NLMISC::toLower(CFile::getExtension (files[i])) == "zonew")
{ {
// Load it // Load it
try try
@ -881,7 +881,7 @@ int main (int argc, char**argv)
for (i=0; i<fileCount; i++) for (i=0; i<fileCount; i++)
{ {
// Primitive file ? // Primitive file ?
if (strlwr (CFile::getExtension (files[i])) == "primitive") if (NLMISC::toLower(CFile::getExtension (files[i])) == "primitive")
{ {
// Progress bar // Progress bar
nlinfo (files[i].c_str()); nlinfo (files[i].c_str());

View file

@ -87,8 +87,7 @@ void CAnimCombatState::build(const string &line)
void makeAnimMeleeImpact(const std::string &animSetFile, const set<CAnimCombatSet> &combatAnimSets) void makeAnimMeleeImpact(const std::string &animSetFile, const set<CAnimCombatSet> &combatAnimSets)
{ {
// look if this animSetFile is in the combat list to patch // look if this animSetFile is in the combat list to patch
string shortName= CFile::getFilenameWithoutExtension(animSetFile); string shortName= NLMISC::toLower(CFile::getFilenameWithoutExtension(animSetFile));
strlwr(shortName);
CAnimCombatSet key; CAnimCombatSet key;
key.Name= shortName; key.Name= shortName;
set<CAnimCombatSet>::const_iterator it= combatAnimSets.find(key); set<CAnimCombatSet>::const_iterator it= combatAnimSets.find(key);
@ -406,8 +405,7 @@ To generate the anim.txt file, this code has to be inserted in the client, in
if(anim && anim3d) if(anim && anim3d)
{ {
// name // name
string name= _AnimationSet->getAnimationName(anim->id()); string name= NLMISC::toLower(_AnimationSet->getAnimationName(anim->id()));
strlwr(name);
if(animName.empty()) if(animName.empty())
animName= name; animName= name;
else if(!extended) else if(!extended)

View file

@ -429,8 +429,8 @@ void CPackageDescription::buildDefaultFileList()
std::vector<std::string> fileList; std::vector<std::string> fileList;
NLMISC::CPath::getPathContent(_BnpDirectory,false,false,true,fileList); NLMISC::CPath::getPathContent(_BnpDirectory,false,false,true,fileList);
for (uint32 i=0;i<fileList.size();++i) for (uint32 i=0;i<fileList.size();++i)
if (NLMISC::strlwr(NLMISC::CFile::getExtension(fileList[i]))=="bnp") if (NLMISC::toLower(NLMISC::CFile::getExtension(fileList[i]))=="bnp")
_Categories.addFile("main",NLMISC::strlwr(NLMISC::CFile::getFilename(fileList[i]))); _Categories.addFile("main",NLMISC::toLower(NLMISC::CFile::getFilename(fileList[i])));
_Categories.addFile("unpacked","root.bnp"); _Categories.addFile("unpacked","root.bnp");
} }

View file

@ -96,16 +96,16 @@ string xmlSpecialChars(string str)
string getFullStdPathNoExt(const string &path) string getFullStdPathNoExt(const string &path)
{ {
string dir = strlwr(NLMISC::CFile::getPath(path)); string dir = NLMISC::toLower(NLMISC::CFile::getPath(path));
string file = strlwr(NLMISC::CFile::getFilenameWithoutExtension(path)); string file = NLMISC::toLower(NLMISC::CFile::getFilenameWithoutExtension(path));
return dir.empty() ? file : NLMISC::CPath::standardizePath(dir)+file; return dir.empty() ? file : NLMISC::CPath::standardizePath(dir)+file;
} }
string getFullStdPath(const string &path) string getFullStdPath(const string &path)
{ {
string dir = strlwr(NLMISC::CFile::getPath(path)); string dir = NLMISC::toLower(NLMISC::CFile::getPath(path));
string file = strlwr(NLMISC::CFile::getFilename(path)); string file = NLMISC::toLower(NLMISC::CFile::getFilename(path));
return dir.empty() ? file : NLMISC::CPath::standardizePath(dir)+file; return dir.empty() ? file : NLMISC::CPath::standardizePath(dir)+file;
} }
@ -255,7 +255,7 @@ bool CDbNode::epilog()
setEnv("db", Name); setEnv("db", Name);
string fullfile = getFullStdPathNoExt(MainFile.empty() ? Name : MainFile); string fullfile = getFullStdPathNoExt(MainFile.empty() ? Name : MainFile);
string filename = NLMISC::strlwr(NLMISC::CFile::getFilenameWithoutExtension(fullfile)); string filename = NLMISC::toLower(NLMISC::CFile::getFilenameWithoutExtension(fullfile));
setEnv("filename", filename); setEnv("filename", filename);
setEnv("fullfilename", fullfile); setEnv("fullfilename", fullfile);
@ -785,14 +785,14 @@ void CDbNode::generateLogContent()
// get file path from this file // get file path from this file
string CDbNode::getFileNoExtPath(const std::string& file) string CDbNode::getFileNoExtPath(const std::string& file)
{ {
string thisPath = NLMISC::CFile::getPath(strlwr(getDbFile())); string thisPath = NLMISC::CFile::getPath(NLMISC::toLower(getDbFile()));
string filePath = NLMISC::CFile::getPath(strlwr(file)); string filePath = NLMISC::CFile::getPath(NLMISC::toLower(file));
string fileName = NLMISC::CFile::getFilename(strlwr(file)); string fileName = NLMISC::CFile::getFilename(NLMISC::toLower(file));
if (thisPath == filePath) if (thisPath == filePath)
return CFile::getFilenameWithoutExtension(fileName); return CFile::getFilenameWithoutExtension(fileName);
else else
return CPath::standardizePath(filePath)+CFile::getFilenameWithoutExtension(strlwr(file)); return CPath::standardizePath(filePath)+CFile::getFilenameWithoutExtension(NLMISC::toLower(file));
} }
@ -822,7 +822,7 @@ bool CFileNode::generateProlog()
if (!db->Description.empty()) if (!db->Description.empty())
Hpp << db->Description << "\n"; Hpp << db->Description << "\n";
string filename = strlwr(CFile::getFilenameWithoutExtension(Name)); string filename = NLMISC::toLower(CFile::getFilenameWithoutExtension(Name));
setEnv("fullfilename", getFullStdPathNoExt(Name)); setEnv("fullfilename", getFullStdPathNoExt(Name));
setEnv("filename", filename); setEnv("filename", filename);
@ -867,7 +867,7 @@ bool CFileNode::generateProlog()
if (SeparatedFlag) if (SeparatedFlag)
{ {
string fullfile = getFullStdPathNoExt(db->MainFile.empty() ? db->Name : db->MainFile); string fullfile = getFullStdPathNoExt(db->MainFile.empty() ? db->Name : db->MainFile);
string filename = NLMISC::strlwr(NLMISC::CFile::getFilenameWithoutExtension(fullfile)); string filename = NLMISC::toLower(NLMISC::CFile::getFilenameWithoutExtension(fullfile));
Hpp << "#include \"" << filename << ".h\"\n"; Hpp << "#include \"" << filename << ".h\"\n";
Hpp << "\n"; Hpp << "\n";
} }
@ -917,7 +917,7 @@ bool CFileNode::generateEpilog()
CDbNode* db = getDbNode(); CDbNode* db = getDbNode();
string fullfile = getFullStdPathNoExt(Name); string fullfile = getFullStdPathNoExt(Name);
string filename = strlwr(CFile::getFilenameWithoutExtension(Name)); string filename = NLMISC::toLower(CFile::getFilenameWithoutExtension(Name));
Hpp.indent(); Hpp.indent();
Hpp << "\n} // End of " << db->Name <<"\n"; Hpp << "\n} // End of " << db->Name <<"\n";
@ -945,14 +945,14 @@ bool CFileNode::generateEpilog()
string CFileNode::getFileNoExtPath(const string& file) string CFileNode::getFileNoExtPath(const string& file)
{ {
string thisPath = NLMISC::CFile::getPath(strlwr(Name)); string thisPath = NLMISC::CFile::getPath(NLMISC::toLower(Name));
string filePath = NLMISC::CFile::getPath(strlwr(file)); string filePath = NLMISC::CFile::getPath(NLMISC::toLower(file));
string fileName = NLMISC::CFile::getFilename(strlwr(file)); string fileName = NLMISC::CFile::getFilename(NLMISC::toLower(file));
if (thisPath == filePath) if (thisPath == filePath)
return CFile::getFilenameWithoutExtension(fileName); return CFile::getFilenameWithoutExtension(fileName);
else else
return CFile::getFilenameWithoutExtension(strlwr(file)); return CFile::getFilenameWithoutExtension(NLMISC::toLower(file));
} }
void CFileNode::writeFile() void CFileNode::writeFile()

View file

@ -266,7 +266,7 @@ void CIGInfo::load(TShapeCache &shapeCache)
for(uint k = 0; k < IG->getNumInstance(); ++k) for(uint k = 0; k < IG->getNumInstance(); ++k)
{ {
std::string shapeName = standardizeShapeName(IG->getShapeName(k)); std::string shapeName = standardizeShapeName(IG->getShapeName(k));
if (NLMISC::strlwr(CFile::getExtension(shapeName)) == "pacs_prim") if (NLMISC::toLower(CFile::getExtension(shapeName)) == "pacs_prim")
{ {
continue; continue;
} }