mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
more string lowercase
This commit is contained in:
parent
ddcb742a00
commit
2dc0064cc2
28 changed files with 101 additions and 139 deletions
|
@ -9,6 +9,8 @@
|
|||
#include "exception.hpp"
|
||||
#include "scanner.hpp"
|
||||
|
||||
#include <components/misc/stringops.hpp>
|
||||
|
||||
namespace Compiler
|
||||
{
|
||||
// Report the error and throw an exception.
|
||||
|
@ -57,10 +59,7 @@ namespace Compiler
|
|||
|
||||
std::string Parser::toLower (const std::string& name)
|
||||
{
|
||||
std::string lowerCase;
|
||||
|
||||
std::transform (name.begin(), name.end(), std::back_inserter (lowerCase),
|
||||
(int(*)(int)) std::tolower);
|
||||
std::string lowerCase = Misc::StringUtils::lowerCase(name);
|
||||
|
||||
return lowerCase;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue