mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix implementation
This commit is contained in:
parent
84508d6a6c
commit
f26032dce8
33 changed files with 81 additions and 79 deletions
|
@ -4,8 +4,8 @@
|
|||
#include <cstddef>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/iterator/ptr_index_iterator.hpp>
|
||||
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
|
||||
#include <sprout/iterator/operation.hpp>
|
||||
#include <sprout/algorithm/find.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
|
@ -22,7 +22,7 @@ namespace sprout {
|
|||
wcslen(wchar_t const* s, std::size_t n) {
|
||||
return sprout::distance(
|
||||
sprout::as_iterator(s),
|
||||
NS_SSCRISK_CEL_OR_SPROUT::find(sprout::as_iterator(s), sprout::as_iterator(s, n), L'\0')
|
||||
sprout::find(sprout::as_iterator(s), sprout::as_iterator(s, n), L'\0')
|
||||
);
|
||||
}
|
||||
} // namespace sprout
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <sprout/config.hpp>
|
||||
#include <sprout/iterator/ptr_index_iterator.hpp>
|
||||
#include <sprout/algorithm/tristate_lexicographical_compare.hpp>
|
||||
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <cstddef>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/iterator/ptr_index_iterator.hpp>
|
||||
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
|
||||
#include <sprout/algorithm/find.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace detail {
|
||||
|
@ -29,7 +29,7 @@ namespace sprout {
|
|||
wmemchr(wchar_t const* s, wchar_t c, size_t n) {
|
||||
return sprout::detail::wmemchr_impl(
|
||||
sprout::as_iterator_base(
|
||||
NS_SSCRISK_CEL_OR_SPROUT::find(
|
||||
sprout::find(
|
||||
sprout::as_iterator(s), sprout::as_iterator(s, n),
|
||||
c
|
||||
)
|
||||
|
@ -42,7 +42,7 @@ namespace sprout {
|
|||
wmemchr(wchar_t* s, wchar_t c, size_t n) {
|
||||
return sprout::detail::wmemchr_impl(
|
||||
sprout::as_iterator_base(
|
||||
NS_SSCRISK_CEL_OR_SPROUT::find(
|
||||
sprout::find(
|
||||
sprout::as_iterator(s), sprout::as_iterator(s, n),
|
||||
c
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue