diff dep/animia/src/util.cc @ 156:cdf79282d647

dep/animia: add VERY early x11 window stuff
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 18:04:04 -0500
parents bd439dd6ffc5
children 80d6b28eb29f
line wrap: on
line diff
--- a/dep/animia/src/util.cc	Wed Nov 15 15:24:39 2023 -0500
+++ b/dep/animia/src/util.cc	Wed Nov 15 18:04:04 2023 -0500
@@ -1,10 +1,8 @@
 #include <algorithm>
 #include <fstream>
+#include <regex>
 #include <sstream>
 #include <string>
-#include <regex>
-
-#include <iostream>
 
 #include "animia/util.h"
 
@@ -28,13 +26,9 @@
 
 /* this assumes ASCII... which really should be the case for what we need, anyway */
 bool EqualStrings(const std::string& str1, const std::string& str2) {
-	auto tolower = [](const char c) -> char {
-		return ('A' <= c && c <= 'Z') ? c + ('a' - 'A') : c;
-	};
+	auto tolower = [](const char c) -> char { return ('A' <= c && c <= 'Z') ? c + ('a' - 'A') : c; };
 
-	auto equal_chars = [&tolower](const char c1, const char c2) -> bool {
-		return tolower(c1) == tolower(c2);
-	};
+	auto equal_chars = [&tolower](const char c1, const char c2) -> bool { return tolower(c1) == tolower(c2); };
 
 	return str1.length() == str2.length() && std::equal(str1.begin(), str1.end(), str2.begin(), equal_chars);
 }
@@ -90,4 +84,4 @@
 	return true;
 }
 
-} // namespace anisthesia::detail::util
+} // namespace animia::internal::util