mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add case_conv algorithms
This commit is contained in:
parent
ef5aa728b0
commit
8885b115f7
83 changed files with 1300 additions and 44 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <sprout/range/adaptor/modifying.hpp>
|
||||
#include <sprout/range/adaptor/reduction.hpp>
|
||||
#include <sprout/range/adaptor/various.hpp>
|
||||
#include <sprout/range/adaptor/string.hpp>
|
||||
#include <sprout/range/adaptor/wave.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ADAPTOR_HPP
|
||||
|
|
8
sprout/range/adaptor/string.hpp
Normal file
8
sprout/range/adaptor/string.hpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_STRING_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_STRING_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/adaptor/to_lower.hpp>
|
||||
#include <sprout/range/adaptor/to_upper.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ADAPTOR_STRING_HPP
|
89
sprout/range/adaptor/to_lower.hpp
Normal file
89
sprout/range/adaptor/to_lower.hpp
Normal file
|
@ -0,0 +1,89 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_TO_LOWER_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_TO_LOWER_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/transform_iterator.hpp>
|
||||
#include <sprout/iterator/to_lower_iterator.hpp>
|
||||
#include <sprout/range/adaptor/detail/adapted_range_default.hpp>
|
||||
#include <sprout/type_traits/lvalue_reference.hpp>
|
||||
#include <sprout/utility/forward.hpp>
|
||||
#include <sprout/utility/lvalue_forward.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace adaptors {
|
||||
//
|
||||
// to_lower_range
|
||||
//
|
||||
template<typename Range>
|
||||
class to_lower_range
|
||||
: public sprout::adaptors::detail::adapted_range_default<
|
||||
Range,
|
||||
sprout::transform_iterator<
|
||||
sprout::ctypes::to_lower<typename sprout::container_traits<Range>::value_type>,
|
||||
typename sprout::container_traits<Range>::iterator
|
||||
>
|
||||
>
|
||||
{
|
||||
public:
|
||||
typedef sprout::adaptors::detail::adapted_range_default<
|
||||
Range,
|
||||
sprout::transform_iterator<
|
||||
sprout::ctypes::to_lower<typename sprout::container_traits<Range>::value_type>,
|
||||
typename sprout::container_traits<Range>::iterator
|
||||
>
|
||||
> base_type;
|
||||
typedef typename base_type::range_type range_type;
|
||||
typedef typename base_type::iterator iterator;
|
||||
typedef typename base_type::value_type value_type;
|
||||
public:
|
||||
to_lower_range() = default;
|
||||
to_lower_range(to_lower_range const&) = default;
|
||||
explicit SPROUT_CONSTEXPR to_lower_range(range_type& range)
|
||||
: base_type(
|
||||
iterator(sprout::begin(range), typename iterator::functor_type()),
|
||||
iterator(sprout::end(range), typename iterator::functor_type())
|
||||
)
|
||||
{}
|
||||
};
|
||||
|
||||
//
|
||||
// to_lower_forwarder
|
||||
//
|
||||
class to_lower_forwarder {};
|
||||
|
||||
//
|
||||
// to_lower
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::to_lower_forwarder to_lower = {};
|
||||
} // anonymous-namespace
|
||||
|
||||
//
|
||||
// operator|
|
||||
//
|
||||
template<typename Range>
|
||||
inline SPROUT_CONSTEXPR sprout::adaptors::to_lower_range<
|
||||
typename std::remove_reference<typename sprout::lvalue_reference<Range>::type>::type
|
||||
>
|
||||
operator|(Range&& lhs, to_lower_forwarder) {
|
||||
return sprout::adaptors::to_lower_range<
|
||||
typename std::remove_reference<typename sprout::lvalue_reference<Range>::type>::type
|
||||
>(
|
||||
sprout::lvalue_forward<Range>(lhs)
|
||||
);
|
||||
}
|
||||
} // namespace adaptors
|
||||
|
||||
//
|
||||
// container_construct_traits
|
||||
//
|
||||
template<typename Range>
|
||||
struct container_construct_traits<sprout::adaptors::to_lower_range<Range> >
|
||||
: public sprout::container_construct_traits<typename sprout::adaptors::to_lower_range<Range>::base_type>
|
||||
{};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ADAPTOR_TO_LOWER_HPP
|
89
sprout/range/adaptor/to_upper.hpp
Normal file
89
sprout/range/adaptor/to_upper.hpp
Normal file
|
@ -0,0 +1,89 @@
|
|||
#ifndef SPROUT_RANGE_ADAPTOR_TO_UPPER_HPP
|
||||
#define SPROUT_RANGE_ADAPTOR_TO_UPPER_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/transform_iterator.hpp>
|
||||
#include <sprout/iterator/to_upper_iterator.hpp>
|
||||
#include <sprout/range/adaptor/detail/adapted_range_default.hpp>
|
||||
#include <sprout/type_traits/lvalue_reference.hpp>
|
||||
#include <sprout/utility/forward.hpp>
|
||||
#include <sprout/utility/lvalue_forward.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace adaptors {
|
||||
//
|
||||
// to_upper_range
|
||||
//
|
||||
template<typename Range>
|
||||
class to_upper_range
|
||||
: public sprout::adaptors::detail::adapted_range_default<
|
||||
Range,
|
||||
sprout::transform_iterator<
|
||||
sprout::ctypes::to_upper<typename sprout::container_traits<Range>::value_type>,
|
||||
typename sprout::container_traits<Range>::iterator
|
||||
>
|
||||
>
|
||||
{
|
||||
public:
|
||||
typedef sprout::adaptors::detail::adapted_range_default<
|
||||
Range,
|
||||
sprout::transform_iterator<
|
||||
sprout::ctypes::to_upper<typename sprout::container_traits<Range>::value_type>,
|
||||
typename sprout::container_traits<Range>::iterator
|
||||
>
|
||||
> base_type;
|
||||
typedef typename base_type::range_type range_type;
|
||||
typedef typename base_type::iterator iterator;
|
||||
typedef typename base_type::value_type value_type;
|
||||
public:
|
||||
to_upper_range() = default;
|
||||
to_upper_range(to_upper_range const&) = default;
|
||||
explicit SPROUT_CONSTEXPR to_upper_range(range_type& range)
|
||||
: base_type(
|
||||
iterator(sprout::begin(range), typename iterator::functor_type()),
|
||||
iterator(sprout::end(range), typename iterator::functor_type())
|
||||
)
|
||||
{}
|
||||
};
|
||||
|
||||
//
|
||||
// to_upper_forwarder
|
||||
//
|
||||
class to_upper_forwarder {};
|
||||
|
||||
//
|
||||
// to_upper
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::to_upper_forwarder to_upper = {};
|
||||
} // anonymous-namespace
|
||||
|
||||
//
|
||||
// operator|
|
||||
//
|
||||
template<typename Range>
|
||||
inline SPROUT_CONSTEXPR sprout::adaptors::to_upper_range<
|
||||
typename std::remove_reference<typename sprout::lvalue_reference<Range>::type>::type
|
||||
>
|
||||
operator|(Range&& lhs, to_upper_forwarder) {
|
||||
return sprout::adaptors::to_upper_range<
|
||||
typename std::remove_reference<typename sprout::lvalue_reference<Range>::type>::type
|
||||
>(
|
||||
sprout::lvalue_forward<Range>(lhs)
|
||||
);
|
||||
}
|
||||
} // namespace adaptors
|
||||
|
||||
//
|
||||
// container_construct_traits
|
||||
//
|
||||
template<typename Range>
|
||||
struct container_construct_traits<sprout::adaptors::to_upper_range<Range> >
|
||||
: public sprout::container_construct_traits<typename sprout::adaptors::to_upper_range<Range>::base_type>
|
||||
{};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ADAPTOR_TO_UPPER_HPP
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_COPY_BACKWARD_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/copy_backward.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_COPY_IF_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/copy_if.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_COPY_UNTIL_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/copy_until.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_COPY_WHILE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/copy_while.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_MERGE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/merge.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_PARTITION_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/partition_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_REMOVE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/remove_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_REMOVE_COPY_IF_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/remove_copy_if.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_REPLACE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/replace_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_REPLACE_COPY_IF_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/replace_copy_if.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_REVERSE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/reverse_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_SET_DIFFERENCE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/set_difference.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_SET_INTERSECTION_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/set_intersection.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_SET_SYMMETRIC_DIFFERENCE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/set_symmetric_difference.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_SET_UNION_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/set_union.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_STABLE_PARTITION_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/stable_partition_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_TRANSFORM_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/transform.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIT_UNIQUE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/fit/unique_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_COPY_BACKWARD_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/copy_backward.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_COPY_IF_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/copy_if.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_COPY_UNTIL_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/copy_until.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_COPY_WHILE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/copy_while.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_MERGE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/merge.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_PARTITION_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/partition_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_REMOVE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/remove_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_REMOVE_COPY_IF_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/remove_copy_if.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_REPLACE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/replace_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_REPLACE_COPY_IF_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/replace_copy_if.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_REVERSE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/reverse_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_SET_DIFFERENCE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/set_difference.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_SET_INTERSECTION_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/set_intersection.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_SET_SYMMETRIC_DIFFERENCE_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/set_symmetric_difference.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_SET_UNION_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/set_union.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_STABLE_PARTITION_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/stable_partition_copy.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_TRANSFORM_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/transform.hpp>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define SPROUT_RANGE_ALGORITHM_FIXED_UNIQUE_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/unique_copy.hpp>
|
||||
|
|
7
sprout/range/algorithm/string.hpp
Normal file
7
sprout/range/algorithm/string.hpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/algorithm/string/case_conv.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_HPP
|
8
sprout/range/algorithm/string/case_conv.hpp
Normal file
8
sprout/range/algorithm/string/case_conv.hpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_CASE_CONV_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_CASE_CONV_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/algorithm/string/fixed/case_conv.hpp>
|
||||
#include <sprout/range/algorithm/string/fit/case_conv.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_CASE_CONV_HPP
|
8
sprout/range/algorithm/string/fit/case_conv.hpp
Normal file
8
sprout/range/algorithm/string/fit/case_conv.hpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_FIT_CASE_CONV_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_FIT_CASE_CONV_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/algorithm/string/fit/to_lower_copy.hpp>
|
||||
#include <sprout/range/algorithm/string/fit/to_upper_copy.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_FIT_CASE_CONV_HPP
|
32
sprout/range/algorithm/string/fit/to_lower_copy.hpp
Normal file
32
sprout/range/algorithm/string/fit/to_lower_copy.hpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_FIT_TO_LOWER_COPY_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_FIT_TO_LOWER_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/string/fit/to_lower_copy.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace range {
|
||||
namespace algorithm {
|
||||
namespace fit {
|
||||
//
|
||||
// to_lower_copy
|
||||
//
|
||||
template<typename InputRange, typename Result>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Result>::type
|
||||
to_lower_copy(InputRange const& rng, Result const& result) {
|
||||
return sprout::fit::to_lower_copy(sprout::begin(rng), sprout::end(rng), result);
|
||||
}
|
||||
} // namespace fit
|
||||
|
||||
using sprout::range::algorithm::fit::to_lower_copy;
|
||||
} // namespace algorithm
|
||||
|
||||
namespace fit {
|
||||
using sprout::range::algorithm::fit::to_lower_copy;
|
||||
} // namespace fit
|
||||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_FIT_TO_LOWER_COPY_HPP
|
32
sprout/range/algorithm/string/fit/to_upper_copy.hpp
Normal file
32
sprout/range/algorithm/string/fit/to_upper_copy.hpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_FIT_TO_UPPER_COPY_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_FIT_TO_UPPER_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fit/result_of.hpp>
|
||||
#include <sprout/algorithm/string/fit/to_upper_copy.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace range {
|
||||
namespace algorithm {
|
||||
namespace fit {
|
||||
//
|
||||
// to_upper_copy
|
||||
//
|
||||
template<typename InputRange, typename Result>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Result>::type
|
||||
to_upper_copy(InputRange const& rng, Result const& result) {
|
||||
return sprout::fit::to_upper_copy(sprout::begin(rng), sprout::end(rng), result);
|
||||
}
|
||||
} // namespace fit
|
||||
|
||||
using sprout::range::algorithm::fit::to_upper_copy;
|
||||
} // namespace algorithm
|
||||
|
||||
namespace fit {
|
||||
using sprout::range::algorithm::fit::to_upper_copy;
|
||||
} // namespace fit
|
||||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_FIT_TO_UPPER_COPY_HPP
|
8
sprout/range/algorithm/string/fixed/case_conv.hpp
Normal file
8
sprout/range/algorithm/string/fixed/case_conv.hpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_FIXED_CASE_CONV_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_FIXED_CASE_CONV_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/algorithm/string/fixed/to_lower_copy.hpp>
|
||||
#include <sprout/range/algorithm/string/fixed/to_upper_copy.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_FIXED_CASE_CONV_HPP
|
41
sprout/range/algorithm/string/fixed/to_lower_copy.hpp
Normal file
41
sprout/range/algorithm/string/fixed/to_lower_copy.hpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_FIXED_TO_LOWER_COPY_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_FIXED_TO_LOWER_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/string/fixed/to_lower_copy.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace range {
|
||||
namespace algorithm {
|
||||
namespace fixed {
|
||||
//
|
||||
// to_lower_copy
|
||||
//
|
||||
template<typename InputRange, typename Result>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
to_lower_copy(InputRange const& rng, Result const& result) {
|
||||
return sprout::algorithm::fixed::to_lower_copy(sprout::begin(rng), sprout::end(rng), result);
|
||||
}
|
||||
|
||||
template<typename Result, typename InputRange>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
to_lower_copy(InputRange const& rng) {
|
||||
return sprout::algorithm::fixed::to_lower_copy<Result>(sprout::begin(rng), sprout::end(rng));
|
||||
}
|
||||
} // namespace fixed
|
||||
|
||||
using sprout::range::algorithm::fixed::to_lower_copy;
|
||||
} // namespace algorithm
|
||||
|
||||
namespace fixed {
|
||||
using sprout::range::algorithm::fixed::to_lower_copy;
|
||||
} // namespace fixed
|
||||
|
||||
using sprout::range::algorithm::fixed::to_lower_copy;
|
||||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_FIXED_TO_LOWER_COPY_HPP
|
41
sprout/range/algorithm/string/fixed/to_upper_copy.hpp
Normal file
41
sprout/range/algorithm/string/fixed/to_upper_copy.hpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_FIXED_TO_UPPER_COPY_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_FIXED_TO_UPPER_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/string/fixed/to_upper_copy.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace range {
|
||||
namespace algorithm {
|
||||
namespace fixed {
|
||||
//
|
||||
// to_upper_copy
|
||||
//
|
||||
template<typename InputRange, typename Result>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
to_upper_copy(InputRange const& rng, Result const& result) {
|
||||
return sprout::algorithm::fixed::to_upper_copy(sprout::begin(rng), sprout::end(rng), result);
|
||||
}
|
||||
|
||||
template<typename Result, typename InputRange>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
to_upper_copy(InputRange const& rng) {
|
||||
return sprout::algorithm::fixed::to_upper_copy<Result>(sprout::begin(rng), sprout::end(rng));
|
||||
}
|
||||
} // namespace fixed
|
||||
|
||||
using sprout::range::algorithm::fixed::to_upper_copy;
|
||||
} // namespace algorithm
|
||||
|
||||
namespace fixed {
|
||||
using sprout::range::algorithm::fixed::to_upper_copy;
|
||||
} // namespace fixed
|
||||
|
||||
using sprout::range::algorithm::fixed::to_upper_copy;
|
||||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_FIXED_TO_UPPER_COPY_HPP
|
8
sprout/range/algorithm/string/to_lower_copy.hpp
Normal file
8
sprout/range/algorithm/string/to_lower_copy.hpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_TO_LOWER_COPY_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_TO_LOWER_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/algorithm/string/fixed/to_lower_copy.hpp>
|
||||
#include <sprout/range/algorithm/string/fit/to_lower_copy.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_TO_LOWER_COPY_HPP
|
8
sprout/range/algorithm/string/to_upper_copy.hpp
Normal file
8
sprout/range/algorithm/string/to_upper_copy.hpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef SPROUT_RANGE_ALGORITHM_STRING_TO_UPPER_COPY_HPP
|
||||
#define SPROUT_RANGE_ALGORITHM_STRING_TO_UPPER_COPY_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/algorithm/string/fixed/to_upper_copy.hpp>
|
||||
#include <sprout/range/algorithm/string/fit/to_upper_copy.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_ALGORITHM_STRING_TO_UPPER_COPY_HPP
|
Loading…
Add table
Add a link
Reference in a new issue