File: test_splice.cs

package info (click to toggle)
clearsilver 0.10.5-1%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,440 kB
  • ctags: 3,139
  • sloc: ansic: 24,586; python: 4,233; sh: 2,945; cs: 1,429; ruby: 819; java: 735; makefile: 600; perl: 118; lisp: 34; sql: 21
file content (11 lines) | stat: -rw-r--r-- 227 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11

<?cs var:Foo ?>
<?cs loop:b=0,10 ?>
<?cs loop:e=10,0,-1 ?>
<?cs var:string.slice(Foo, b, e) ?>
<?cs /loop ?>
<?cs /loop ?>

Check end of string slice:
<?cs var:string.slice(Foo, -5, -1) ?>
<?cs var:string.slice(Foo, -5, 0) ?>