Sequences - Xref - Single - trim


App: regression/framework Page: lenient/a_trim_count_that_is_no_number_takes_nothing_off
PHP
lenient/a_trim_count_that_is_no_number_takes_nothing_off.php
HTML
lenient/a_trim_count_that_is_no_number_takes_nothing_off.pad
Result
<?php

// The lenient walk under test: with the syntax check off, what cannot run passes the
// value through or yields empty, and the walk carries on.

$padCheckSyntax = FALSE;

?>
{sequence '1..6', trim, right='x'}{$sequence} {/sequence}|{sequence '1..6', trim, both=2.5, left=1}{$sequence} {/sequence}

App: regression/framework Page: sequence/an_action_in_an_expression_reads_no_option_of_the_tag_around_it
PHP
HTML
sequence/an_action_in_an_expression_reads_no_option_of_the_tag_around_it.pad
Result
[{sequence '1..3', eval='php:count(sequence:trim([1,2,3,4,5,6]))'}{$sequence} {/sequence}][{sequence '1..3', trim, right=1, eval='php:count(sequence:trim([1,2,3,4,5,6]))'}{$sequence} {/sequence}][{sequence '1..3', randomize=3, duplicates, eval='php:count(sequence:randomize([1,2,3], 5))'}{$sequence} {/sequence}][{sequence '1..6', trim, right=2}{$sequence} {/sequence}]

App: regression/framework Page: sequence/trim_0_takes_off_nothing
PHP
HTML
sequence/trim_0_takes_off_nothing.pad
Result
{sequence '1..10', push='nums'/}
{pull:nums trim=0}
{$sequence},
{/pull:nums}

App: regression/framework Page: sequence/trim_left_only
PHP
HTML
sequence/trim_left_only.pad
Result
{sequence '1..10', push='nums'/}
{pull:nums trim, left=8}
{$sequence},
{/pull:nums}

App: regression/framework Page: sequence/trim_takes_off_both_ends
PHP
HTML
sequence/trim_takes_off_both_ends.pad
Result
{sequence '1..10', push='nums'/}
{pull:nums trim=2}
{$sequence},
{/pull:nums}

App: regression/framework Page: sequence/trim_value_fills_both_then_left_adds
PHP
HTML
sequence/trim_value_fills_both_then_left_adds.pad
Result
{sequence '1..10', push='nums'/}
{pull:nums trim=2, left=3}
{$sequence},
{/pull:nums}

App: sequence Page: actions

App: sequence Page: specials/trim