From fd3946f2b2b013af01fdf60f67afb655c38c1901 Mon Sep 17 00:00:00 2001 From: Per Larsson Date: Tue, 31 Aug 2021 15:01:46 +0200 Subject: Asynchronous upstream caching to Jupiter Co-authored-by: Stefan Boberg --- zencore/include/zencore/string.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'zencore/include') 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(std::tolower(C)); + } + + return Out; +} + +////////////////////////////////////////////////////////////////////////// + void string_forcelink(); // internal } // namespace zen -- cgit v1.2.3