Skip to content

Commit

Permalink
xrCore/Xr_ini: strlwr() -> xr_strlwr().
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 6, 2015
1 parent e8f6029 commit 57468c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrCore/Xr_ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void CInifile::Load(IReader* F, LPCSTR path
}
}
*strchr(str, ']') = 0;
Current->Name = strlwr(str + 1);
Current->Name = xr_strlwr(str + 1);
}
else // name = value
{
Expand Down Expand Up @@ -500,7 +500,7 @@ CInifile::Sect& CInifile::r_section(LPCSTR S)const
{
char section[256];
xr_strcpy(section, sizeof(section), S);
strlwr(section);
xr_strlwr(section);
RootCIt I = std::lower_bound(DATA.begin(), DATA.end(), section, sect_pred);
if (!(I != DATA.end() && xr_strcmp(*(*I)->Name, section) == 0))
{
Expand Down Expand Up @@ -684,7 +684,7 @@ BOOL CInifile::r_bool(LPCSTR S, LPCSTR L)const
char B[8];
strncpy_s(B, sizeof(B), C, 7);
B[7] = 0;
strlwr(B);
xr_strlwr(B);
return IsBOOL(B);
}

Expand Down Expand Up @@ -732,7 +732,7 @@ void CInifile::w_string(LPCSTR S, LPCSTR L, LPCSTR V, LPCSTR comment)
// section
string256 sect;
_parse(sect, S);
_strlwr(sect);
xr_strlwr(sect);

if (!section_exist(sect))
{
Expand Down

0 comments on commit 57468c4

Please sign in to comment.