aboutsummaryrefslogtreecommitdiff
path: root/src/zencore
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore')
-rw-r--r--src/zencore/include/zencore/string.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/string.h b/src/zencore/include/zencore/string.h
index e3de2224c..3aec1647d 100644
--- a/src/zencore/include/zencore/string.h
+++ b/src/zencore/include/zencore/string.h
@@ -809,6 +809,19 @@ ForEachStrTok(const std::string_view& Str, char Delim, Fn&& Func)
//////////////////////////////////////////////////////////////////////////
+inline std::string_view
+ToString(bool Value)
+{
+ using namespace std::literals;
+ if (Value)
+ {
+ return "true"sv;
+ }
+ return "false"sv;
+}
+
+//////////////////////////////////////////////////////////////////////////
+
inline int32_t
StrCaseCompare(const char* Lhs, const char* Rhs, int64_t Length = -1)
{