mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-08 17:21:59 -10:00
18 lines
324 B
C++
18 lines
324 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
namespace devilution {
|
|
|
|
void AsciiStrToLower(std::string &str);
|
|
|
|
[[nodiscard]] inline std::string AsciiStrToLower(std::string_view str)
|
|
{
|
|
std::string copy { str.data(), str.size() };
|
|
AsciiStrToLower(copy);
|
|
return copy;
|
|
}
|
|
|
|
} // namespace devilution
|