User Tools

Site Tools


cookbooks:devel:transformations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cookbooks:devel:transformations [2021/06/01 10:40]
miconda [{param.value,name[, delimiter]}]
cookbooks:devel:transformations [2021/06/25 10:01]
miconda [{s.after,x}]
Line 381: Line 381:
 ==== {s.after,x} ==== ==== {s.after,x} ====
  
-Return the part of the string after the character **x**. If the character **x** is not found, it returns empty string.+Return the part of the string after the character **x** searched from the start of the value. If the character **x** is not found, it returns empty string.
  
 <code c> <code c>
Line 388: Line 388:
 </code> </code>
  
 +==== {s.rafter,x} ====
 +
 +Return the part of the string after the character **x** searched from the end of the value. If the character **x** is not found, it returns empty string.
 +
 +<code c>
 +"abcdefcgh"{s.rafter,c}
 +# will return "gh"
 +</code>
 ==== {s.before,x} ==== ==== {s.before,x} ====
  
Line 661: Line 669:
 ==== {line.at,pos} ==== ==== {line.at,pos} ====
  
-Return the line at position 'pos'. The index start from 0. Negative position can be used to count from last line (which is -1).+Return the line at position 'pos'. The index start from 0. Negative position can be used to count from last line (which is -1). The pos can be also a variable holding the index value.
  
 Example: Example:
cookbooks/devel/transformations.txt ยท Last modified: 2022/04/08 18:08 by miconda