aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-08-31 20:52:23 +0200
committerStefan Boberg <[email protected]>2021-08-31 20:52:23 +0200
commit0b5881476abd68055b622bed0553fe98450b5cf0 (patch)
treee64c253fc9f241496b6b842e430954df4c7e2d63 /zencore/include
parentAdded some argument validation (diff)
parentFormat fix. (diff)
downloadzen-0b5881476abd68055b622bed0553fe98450b5cf0.tar.xz
zen-0b5881476abd68055b622bed0553fe98450b5cf0.zip
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/string.h15
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