1
0

feat: finish clap manual table filler

- finish clap manual table fill functions.
- fix iterator object for the requirements of std::ranges::end().
This commit is contained in:
2025-10-02 16:57:15 +08:00
parent 446f880df4
commit d69563b5df
3 changed files with 52 additions and 19 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "../macro/printf_checker.hpp"
#include "../macro/class_copy_move.hpp"
#include <string>
#include <string_view>
#include <cstdarg>
@@ -243,7 +244,9 @@ namespace yycc::string::op {
std::u8string_view m_delimiter; ///< Delimiter
public:
LazySplitIterator();
LazySplitIterator(std::optional<std::u8string_view> strl, const std::u8string_view& delimiter);
YYCC_DEFAULT_COPY_MOVE(LazySplitIterator)
reference operator*() const;
pointer operator->() const;
@@ -263,6 +266,8 @@ namespace yycc::string::op {
public:
LazySplit(const std::u8string_view& strl, const std::u8string_view& delimiter);
YYCC_DEFAULT_COPY_MOVE(LazySplit)
LazySplitIterator begin() const;
LazySplitIterator end() const;
};