aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 09:26:58 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 09:26:58 +0800
commita6b5b8b879a9a587ec0ad605722d5d6428d5e68c (patch)
tree137fbe9d970e0aa8f501f0632054bf8fee1575ec /include/cru/base
parentaa05a34dd5e4a56563cbfeab273785ce0e363089 (diff)
downloadcru-a6b5b8b879a9a587ec0ad605722d5d6428d5e68c.tar.gz
cru-a6b5b8b879a9a587ec0ad605722d5d6428d5e68c.tar.bz2
cru-a6b5b8b879a9a587ec0ad605722d5d6428d5e68c.zip
XML and mapper remove String.
Diffstat (limited to 'include/cru/base')
-rw-r--r--include/cru/base/StringUtil.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/cru/base/StringUtil.h b/include/cru/base/StringUtil.h
index ef6359ff..f2373444 100644
--- a/include/cru/base/StringUtil.h
+++ b/include/cru/base/StringUtil.h
@@ -2,12 +2,22 @@
#include "Base.h"
#include "Bitmask.h"
+#include <compare>
#include <functional>
#include <stdexcept>
+#include <string_view>
#include <type_traits>
#include <vector>
namespace cru {
+namespace string {
+std::weak_ordering CaseInsensitiveCompare(std::string_view left,
+ std::string_view right);
+std::string TrimBegin(std::string_view str);
+std::string TrimEnd(std::string_view str);
+std::string Trim(std::string_view str);
+} // namespace string
+
namespace details {
struct SplitOptionsTag {};
} // namespace details