mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
rewrite sprout::algorithm::join performance
This commit is contained in:
parent
0ceabb5b9b
commit
1ea9d30e2a
145 changed files with 1359 additions and 364 deletions
|
@ -4,7 +4,7 @@
|
|||
// Copyright (c) 2012
|
||||
// bolero-MURAKAMI : http://d.hatena.ne.jp/boleros/
|
||||
// osyo-manga : http://d.hatena.ne.jp/osyo-manga/
|
||||
//
|
||||
//
|
||||
// Readme:
|
||||
// https://github.com/osyo-manga/cpp-half/blob/master/README
|
||||
//
|
||||
|
@ -18,11 +18,11 @@
|
|||
int
|
||||
main(){
|
||||
namespace w = sprout::weed;
|
||||
|
||||
|
||||
static constexpr auto max_string_size = 32;
|
||||
static constexpr auto space = *w::omit[ w::space ];
|
||||
static constexpr auto remove_space = *w::lim<max_string_size>(space >> w::char_);
|
||||
|
||||
|
||||
static constexpr auto source = sprout::to_string(" homu : mami= 10 ");
|
||||
static constexpr auto result = w::parse(
|
||||
sprout::begin(source), sprout::end(source),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue