[OpenSIPS-Devel] [opensips] add width string transformation (#530)

Jarrod Baumann notifications at github.com
Fri May 29 23:46:01 CEST 2015


this adds a string transformation primarily used for making pretty logs.  for example:

```
xlog("L_INFO","$var(prefix): $(cs{s.width,7}): $(rm{s.width,9}): request from uac behind nat\n");
```

i looked into use `$(cs{s.fill.right, " ", 7})` but it wasn't meant for that it seems.
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSIPS/opensips/pull/530

-- Commit Summary --

  * add string transformation  e.g.

-- File Changes --

    M transformations.c (72)
    M transformations.h (2)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/530.patch
https://github.com/OpenSIPS/opensips/pull/530.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/530
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150529/f9ad5319/attachment-0001.htm>


More information about the Devel mailing list