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
Last revision Both sides next revision
cookbooks:devel:transformations [2019/08/19 14:30]
miconda [Parameters List Transformations]
cookbooks:devel:transformations [2019/09/04 20:56]
henningw [{s.unbracket}]
Line 335: Line 335:
 $var(uri) = $(var(x){s.unbracket});​ $var(uri) = $(var(x){s.unbracket});​
 </​code>​ </​code>​
 +
 +==== {s.count,c} ====
 +
 +Count how many times c appears in the pv value.
 +
 +<code c>
 +abababa"​{s.count,​a}
 +# will return 4
 +</​code>​
 +
 +
 ===== URI Transformations ===== ===== URI Transformations =====
  
Line 418: Line 429:
 Available transformations in this class are presented in the next sections. Available transformations in this class are presented in the next sections.
  
-**Important Note:** the delimiter cannot be comma (,), because this trasformation is using SIP header/​URI ​parameter ​parser and the comma is a delimiter between serialized SIP header/URI bodies. The workaround is to use the subst transformation to replace the comma with another character that is used then as separator.+**Important Note:** the delimiter cannot be comma (,), because this trasformation is using SIP header/​URI ​parameters ​parser and the comma is a delimiter between serialized SIP header/URI bodies. The workaround is to use the subst transformation to replace the comma with another character that is used then as separator.
  
  
cookbooks/devel/transformations.txt ยท Last modified: 2019/10/10 14:54 by miconda