mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
rename ptr_index, ptr_unindex
This commit is contained in:
parent
899bf3fa77
commit
a5e14e71e1
10 changed files with 75 additions and 41 deletions
|
@ -30,9 +30,9 @@ namespace sprout {
|
|||
inline SPROUT_CONSTEXPR void const*
|
||||
memchr(void const* s, int c, std::size_t n) {
|
||||
return sprout::detail::memchr_impl(
|
||||
sprout::as_iterator_base(
|
||||
sprout::ptr_unindex(
|
||||
sprout::find(
|
||||
sprout::as_iterator(static_cast<unsigned char const*>(s)), sprout::as_iterator(static_cast<unsigned char const*>(s), n),
|
||||
sprout::ptr_index(static_cast<unsigned char const*>(s)), sprout::ptr_index(static_cast<unsigned char const*>(s), n),
|
||||
static_cast<unsigned char>(c)
|
||||
)
|
||||
),
|
||||
|
@ -43,9 +43,9 @@ namespace sprout {
|
|||
inline SPROUT_CONSTEXPR void*
|
||||
memchr(void* s, int c, std::size_t n) {
|
||||
return sprout::detail::memchr_impl(
|
||||
sprout::as_iterator_base(
|
||||
sprout::ptr_unindex(
|
||||
sprout::find(
|
||||
sprout::as_iterator(static_cast<unsigned char*>(s)), sprout::as_iterator(static_cast<unsigned char*>(s), n),
|
||||
sprout::ptr_index(static_cast<unsigned char*>(s)), sprout::ptr_index(static_cast<unsigned char*>(s), n),
|
||||
static_cast<unsigned char>(c)
|
||||
)
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue