diff options
| author | Per Larsson <[email protected]> | 2021-08-31 15:01:46 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-08-31 15:16:22 +0200 |
| commit | fd3946f2b2b013af01fdf60f67afb655c38c1901 (patch) | |
| tree | eca4abed5d71a157e185699f4e9668a92b756ca8 /zencore | |
| parent | Removed unused packages from vcpkg.json (diff) | |
| download | zen-fd3946f2b2b013af01fdf60f67afb655c38c1901.tar.xz zen-fd3946f2b2b013af01fdf60f67afb655c38c1901.zip | |
Asynchronous upstream caching to Jupiter
Co-authored-by: Stefan Boberg <[email protected]>
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/include/zencore/string.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zencore/include/zencore/string.h b/zencore/include/zencore/string.h index 684e27827..291b18043 100644 --- a/zencore/include/zencore/string.h +++ b/zencore/include/zencore/string.h @@ -605,6 +605,21 @@ HashStringDjb2(const std::string_view& InString) ////////////////////////////////////////////////////////////////////////// +inline std::string +ToLower(const std::string_view& InString) +{ + std::string Out(InString); + + for (char& C : Out) + { + C = static_cast<char>(std::tolower(C)); + } + + return Out; +} + +////////////////////////////////////////////////////////////////////////// + void string_forcelink(); // internal } // namespace zen |