1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-10-05 13:00:00 +00:00

porting sscrisk/CEL

This commit is contained in:
bolero-MURAKAMI 2012-04-01 22:15:09 +09:00
commit db20f64991
181 changed files with 2531 additions and 607 deletions

View file

@ -14,8 +14,8 @@
#include <sprout/weed/traits/expr/tag_of.hpp>
#include <sprout/weed/traits/parser/attribute_of.hpp>
#include <sprout/weed/context/parse_context_fwd.hpp>
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT
namespace sprout {
namespace weed {
@ -48,8 +48,8 @@ namespace sprout {
context_type const& ctx
) const
{
return NS_SSCRISK_CEL_OR_SPROUT_DETAIL::distance(ctx.begin(), ctx.end()) >= sprout::size(arg)
&&NS_SSCRISK_CEL_OR_SPROUT_DETAIL::equal(sprout::begin(arg), sprout::end(arg), ctx.begin())
return NS_SSCRISK_CEL_OR_SPROUT::distance(ctx.begin(), ctx.end()) >= sprout::size(arg)
&&NS_SSCRISK_CEL_OR_SPROUT::equal(sprout::begin(arg), sprout::end(arg), ctx.begin())
? result_type(
true,
sprout::next(ctx.begin(),

View file

@ -6,8 +6,8 @@
#include <sprout/string.hpp>
#include <sprout/array.hpp>
#include <sprout/tuple/tuple.hpp>
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT
namespace sprout {
namespace weed {
@ -71,9 +71,9 @@ namespace sprout {
template<typename IntType, typename Elem>
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_bdigit(Elem c) {
return sprout::weed::detail::bvalue_at<IntType>(
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::distance(
NS_SSCRISK_CEL_OR_SPROUT::distance(
sprout::weed::detail::bdigits<Elem>::table.begin(),
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::find(
NS_SSCRISK_CEL_OR_SPROUT::find(
sprout::weed::detail::bdigits<Elem>::table.begin(),
sprout::weed::detail::bdigits<Elem>::table.end(),
c

View file

@ -6,8 +6,8 @@
#include <sprout/string.hpp>
#include <sprout/array.hpp>
#include <sprout/tuple/tuple.hpp>
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT
namespace sprout {
namespace weed {
@ -71,9 +71,9 @@ namespace sprout {
template<typename IntType, typename Elem>
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_digit(Elem c) {
return sprout::weed::detail::value_at<IntType>(
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::distance(
NS_SSCRISK_CEL_OR_SPROUT::distance(
sprout::weed::detail::digits<Elem>::table.begin(),
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::find(
NS_SSCRISK_CEL_OR_SPROUT::find(
sprout::weed::detail::digits<Elem>::table.begin(),
sprout::weed::detail::digits<Elem>::table.end(),
c

View file

@ -6,8 +6,8 @@
#include <sprout/string.hpp>
#include <sprout/array.hpp>
#include <sprout/tuple/tuple.hpp>
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT
namespace sprout {
namespace weed {
@ -71,9 +71,9 @@ namespace sprout {
template<typename IntType, typename Elem>
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_odigit(Elem c) {
return sprout::weed::detail::ovalue_at<IntType>(
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::distance(
NS_SSCRISK_CEL_OR_SPROUT::distance(
sprout::weed::detail::odigits<Elem>::table.begin(),
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::find(
NS_SSCRISK_CEL_OR_SPROUT::find(
sprout::weed::detail::odigits<Elem>::table.begin(),
sprout::weed::detail::odigits<Elem>::table.end(),
c

View file

@ -6,8 +6,8 @@
#include <sprout/string.hpp>
#include <sprout/array.hpp>
#include <sprout/tuple/tuple.hpp>
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT
namespace sprout {
namespace weed {
@ -71,9 +71,9 @@ namespace sprout {
template<typename IntType, typename Elem>
SPROUT_CONSTEXPR sprout::tuples::tuple<IntType, bool> from_xdigit(Elem c) {
return sprout::weed::detail::xvalue_at<IntType>(
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::distance(
NS_SSCRISK_CEL_OR_SPROUT::distance(
sprout::weed::detail::xdigits<Elem>::table.begin(),
NS_SSCRISK_CEL_OR_SPROUT_DETAIL::find(
NS_SSCRISK_CEL_OR_SPROUT::find(
sprout::weed::detail::xdigits<Elem>::table.begin(),
sprout::weed::detail::xdigits<Elem>::table.end(),
c

View file

@ -14,8 +14,8 @@
#include <sprout/weed/parser/lit.hpp>
#include <sprout/weed/traits/type/is_c_str.hpp>
#include <sprout/weed/traits/type/is_string.hpp>
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT_DETAIL
#include HDR_ALGORITHM_SSCRISK_CEL_OR_SPROUT
#include HDR_ITERATOR_SSCRISK_CEL_OR_SPROUT
namespace sprout {
namespace weed {
@ -53,8 +53,8 @@ namespace sprout {
{
typedef typename result<Context, Iterator>::type result_type;
typedef typename attribute<Context, Iterator>::type attribute_type;
return NS_SSCRISK_CEL_OR_SPROUT_DETAIL::distance(first, last) >= sprout::size(t_)
&&NS_SSCRISK_CEL_OR_SPROUT_DETAIL::equal(sprout::begin(t_), sprout::end(t_), first)
return NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) >= sprout::size(t_)
&&NS_SSCRISK_CEL_OR_SPROUT::equal(sprout::begin(t_), sprout::end(t_), first)
? result_type(true, sprout::next(first, sprout::size(t_)), attribute_type())
: result_type(false, first, typename attribute<Context, Iterator>::type())
;
@ -128,8 +128,8 @@ namespace sprout {
{
typedef typename result<Context, Iterator>::type result_type;
typedef typename attribute<Context, Iterator>::type attribute_type;
return NS_SSCRISK_CEL_OR_SPROUT_DETAIL::distance(first, last) >= sprout::size(t_)
&&NS_SSCRISK_CEL_OR_SPROUT_DETAIL::equal(sprout::begin(t_), sprout::end(t_), first)
return NS_SSCRISK_CEL_OR_SPROUT::distance(first, last) >= sprout::size(t_)
&&NS_SSCRISK_CEL_OR_SPROUT::equal(sprout::begin(t_), sprout::end(t_), first)
? result_type(true, sprout::next(first, sprout::size(t_)), attribute_type())
: result_type(false, first, typename attribute<Context, Iterator>::type())
;