Changed: Replaced strlwr by toLower
This commit is contained in:
parent
59042ccb6a
commit
4da04fdfaa
5 changed files with 7 additions and 11 deletions
|
@ -205,12 +205,12 @@ namespace NLGUI
|
|||
CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||
if(prop)
|
||||
{
|
||||
string sTmp = NLMISC::strlwr((const char*)prop);
|
||||
string sTmp = NLMISC::toLower((const char*)prop);
|
||||
_Texture = rVR.createTexture (sTmp, 0, 0, 256, 64, false, false);
|
||||
}
|
||||
|
||||
prop = (char*) xmlGetProp( node, (xmlChar*)"onchange" );
|
||||
if (prop) _AHOnChange = NLMISC::strlwr(prop);
|
||||
if (prop) _AHOnChange = NLMISC::toLower(prop);
|
||||
prop = (char*) xmlGetProp( node, (xmlChar*)"onchange_params" );
|
||||
if (prop) _AHOnChangeParams = string((const char*)prop);
|
||||
|
||||
|
|
|
@ -993,8 +993,7 @@ namespace NLGUI
|
|||
// ------------------------------------------------------------------------------------------------
|
||||
bool CInterfaceElement::convertBool (const char *ptr)
|
||||
{
|
||||
std::string str = ptr;
|
||||
NLMISC::strlwr( str );
|
||||
std::string str = toLower(ptr);
|
||||
bool b = false;
|
||||
fromString( str, b );
|
||||
return b;
|
||||
|
|
|
@ -307,8 +307,7 @@ namespace NLGUI
|
|||
prop = (char*) xmlGetProp( cur, (xmlChar*)"texture" );
|
||||
if (prop)
|
||||
{
|
||||
string TxName = (const char *) prop;
|
||||
TxName = strlwr (TxName);
|
||||
string TxName = toLower((const char *) prop);
|
||||
setTexture (TxName);
|
||||
//CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
||||
//CViewRenderer &rVR = *CViewRenderer::getInstance();
|
||||
|
@ -450,7 +449,6 @@ namespace NLGUI
|
|||
// ----------------------------------------------------------------------------
|
||||
void CViewBitmap::setTexture(const std::string & TxName)
|
||||
{
|
||||
|
||||
_TextureId.setTexture (TxName.c_str (), _TxtOffsetX, _TxtOffsetY, _TxtWidth, _TxtHeight, false);
|
||||
}
|
||||
|
||||
|
|
|
@ -894,11 +894,11 @@ namespace NLGUI
|
|||
{
|
||||
if (sGlobalTextureName.empty()) return -1;
|
||||
// Look if already existing
|
||||
string sLwrGTName = strlwr(sGlobalTextureName);
|
||||
string sLwrGTName = toLower(sGlobalTextureName);
|
||||
TGlobalTextureList::iterator ite = _GlobalTextures.begin();
|
||||
while (ite != _GlobalTextures.end())
|
||||
{
|
||||
std::string sText = strlwr(ite->Name);
|
||||
std::string sText = toLower(ite->Name);
|
||||
if (sText == sLwrGTName)
|
||||
break;
|
||||
ite++;
|
||||
|
|
|
@ -312,8 +312,7 @@ void CSBrickSheet::build (const NLGEORGES::UFormElm &root)
|
|||
BrickRequiredFlags= 0;
|
||||
for(i=0;i<Properties.size();i++)
|
||||
{
|
||||
string text= Properties[i].Text;
|
||||
strlwr(text);
|
||||
string text= NLMISC::toLower(Properties[i].Text);
|
||||
|
||||
// If the property is an opening property
|
||||
const string openingProp[]= { "opening_1:", "opening_2:", "opening_3:" };
|
||||
|
|
Loading…
Reference in a new issue