File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414namespace daw ::pipelines {
1515 template <typename Pred>
16- constexpr auto drop_while ( Pred &&p ) {
16+ constexpr auto DropWhile ( Pred &&p ) {
1717 return [pred = DAW_FWD ( p )]( auto &&r ) {
1818 auto f = std::begin ( r );
1919 auto l = std::end ( r );
@@ -25,7 +25,7 @@ namespace daw::pipelines {
2525 }
2626
2727 template <typename Pred>
28- constexpr auto drop_until ( Pred &&p ) {
28+ constexpr auto DropUntil ( Pred &&p ) {
2929 return [pred = DAW_FWD ( p )]( auto &&r ) {
3030 auto f = std::begin ( r );
3131 auto l = std::end ( r );
Original file line number Diff line number Diff line change @@ -597,12 +597,11 @@ namespace tests {
597597
598598 DAW_ATTRIB_NOINLINE void test033 ( ) {
599599 constexpr daw::string_view s = " Hello " ;
600- constexpr auto p = daw::pipelines::pipeline (
601- s,
602- daw::pipelines::drop_while ( is_control_or_space ),
603- daw::pipelines::Reverse,
604- daw::pipelines::drop_while ( is_control_or_space ),
605- daw::pipelines::Reverse );
600+ constexpr auto p = pipeline ( s,
601+ DropWhile ( is_control_or_space ),
602+ Reverse,
603+ DropWhile ( is_control_or_space ),
604+ Reverse );
606605 constexpr auto s2 = daw::string_view{ std::data ( p ), std::size ( p ) };
607606 daw_ensure ( s2 == " Hello" );
608607 }
You can’t perform that action at this time.
0 commit comments