From eccdcfe3d63b1fc51dae67c6f5214cd6ebcdb84d Mon Sep 17 00:00:00 2001 From: HapiFive <1143910315@qq.com> Date: Tue, 12 Mar 2024 23:12:18 +0800 Subject: [PATCH] feat: standardized code. --- iVerse/include/string/iString.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/iVerse/include/string/iString.h b/iVerse/include/string/iString.h index ce1596f..422c965 100644 --- a/iVerse/include/string/iString.h +++ b/iVerse/include/string/iString.h @@ -39,37 +39,37 @@ namespace String public: iString() : std::string() {}; - iString(const char* const _Ptr) + iString(CPtr const _Ptr) : std::string(_Ptr) {}; - iString(const std::allocator& _Al) + iString(CRef> _Al) : std::string(_Al) {}; - iString(std::string&& _Right) + iString(RRef _Right) : std::string(_Right) {}; - iString(const std::string& _Right) + iString(CRef _Right) : std::string(_Right) {}; - iString(std::initializer_list _Ilist, const std::allocator& _Al) + iString(std::initializer_list _Ilist, CRef> _Al) : std::string(_Ilist, _Al) {}; - iString(std::string&& _Right, const std::allocator& _Al) + iString(RRef _Right, CRef> _Al) : std::string(_Right, _Al) {}; - iString(const char* const _Ptr, const std::allocator& _Al) + iString(CPtr const _Ptr, CRef> _Al) : std::string(_Ptr, _Al) {}; - iString(const std::string& _Right, const std::allocator& _Al) + iString(CRef _Right, CRef> _Al) : std::string(_Right, _Al) {}; iString(const size_t _Count, const char _Ch) : std::string(_Count, _Ch) {}; - iString(const char* const _Ptr, const size_t _Count) + iString(CPtr const _Ptr, const size_t _Count) : std::string(_Ptr, _Count) {}; - iString(const size_t _Count, const char _Ch, const std::allocator& _Al) + iString(const size_t _Count, const char _Ch, CRef> _Al) : std::string(_Count, _Ch, _Al) {}; - iString(const char* const _Ptr, const size_t _Count, const std::allocator& _Al) + iString(CPtr const _Ptr, const size_t _Count, CRef> _Al) : std::string(_Ptr, _Count, _Al) {}; - iString(const std::string& _Right, const size_t _Roff, const std::allocator& _Al) + iString(CRef _Right, const size_t _Roff, CRef> _Al) : std::string(_Right, _Roff, _Al) {}; iString( - const std::string& _Right, - const size_t _Roff, - const size_t _Count, - const std::allocator& _Al + CRef _Right, + const size_t _Roff, + const size_t _Count, + CRef> _Al ) : std::string(_Right, _Roff, _Count, _Al) {};