On 4/20/10 7:16 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
> Does not make lot of sense in my opinion since it is very easy to do
> with substr:
>
> head: {s.substr, 0, len}
> tail: {s.substr, -len, 0}
>
> striptail requied computation of the length and use of
Daniel-Constantin Mierla writes:
> Does not make lot of sense in my opinion since it is very easy to do
> with substr:
>
> head: {s.substr, 0, len}
> tail: {s.substr, -len, 0}
>
> striptail requied computation of the length and use of that in substr,
> making it a bit too complex.
yes
On 4/20/10 6:30 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
> should be fixed now. Let me know if works fine for you.
the same test now worked ok. i'll make more tests later.
now that you have implemented strips, how about the opposite, i.e., head
and tail?
Does not m
Daniel-Constantin Mierla writes:
> should be fixed now. Let me know if works fine for you.
the same test now worked ok. i'll make more tests later.
now that you have implemented strips, how about the opposite, i.e., head
and tail?
-- juha
___
SIP E
On 4/20/10 5:36 PM, Juha Heinanen wrote:
Juha Heinanen writes:
> i got core dump. most like from this statement:
>
> $rU = $(var(unescaped_user){s.strip,4});
it turned out that in this test $var(unescaped_user) only had 4 chars,
i.e., they all got stripped. then this empty string is
Hello,
On 4/20/10 5:36 PM, Juha Heinanen wrote:
Juha Heinanen writes:
> i got core dump. most like from this statement:
>
> $rU = $(var(unescaped_user){s.strip,4});
it turned out that in this test $var(unescaped_user) only had 4 chars,
i.e., they all got stripped. then this empty str
Juha Heinanen writes:
> i got core dump. most like from this statement:
>
> $rU = $(var(unescaped_user){s.strip,4});
it turned out that in this test $var(unescaped_user) only had 4 chars,
i.e., they all got stripped. then this empty string is supposed to be
assigned to $rU.
the test may no
Daniel-Constantin Mierla writes:
> I just committed s.strip and s.striptail transformations:
> http://sip-router.org/wiki/cookbooks/transformations/devel#sstrip_len
>
> Testing and feedback is appreciated.
daniel,
i got core dump. most like from this statement:
$rU = $(var(unescaped_user)
On 4/12/10 8:04 PM, Daniel-Constantin Mierla wrote:
On 4/12/10 7:59 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
> it supports only strings. The subst expression is pre-compiled at
startup.
>
> Some development is required to extend for what you want.
daniel,
no problem,
On 4/12/10 8:37 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
> i guess you wanted to say operate on $ru - strip() and strip_tail()
> functions - indeed there are some core functions, removing might not be
> easy since some people may want them for backward compatibility o
Daniel-Constantin Mierla writes:
> i guess you wanted to say operate on $ru - strip() and strip_tail()
> functions - indeed there are some core functions, removing might not be
> easy since some people may want them for backward compatibility or
> simplicity, but moving several "no-longer-o
On 4/12/10 8:09 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
> ok, which reminds me that I wanted to add transformations for strip and
> strip_tail for the sake of cfg easiness...
those would would make my expression much simpler.
yes, i want them for same reason.
th
Daniel-Constantin Mierla writes:
> ok, which reminds me that I wanted to add transformations for strip and
> strip_tail for the sake of cfg easiness...
those would would make my expression much simpler. there is now some
core functions like those that operate on $tu and once the functions you
On 4/12/10 7:59 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
> it supports only strings. The subst expression is pre-compiled at startup.
>
> Some development is required to extend for what you want.
daniel,
no problem, i was able to achieve what i want using s.len and s
Daniel-Constantin Mierla writes:
> it supports only strings. The subst expression is pre-compiled at startup.
>
> Some development is required to extend for what you want.
daniel,
no problem, i was able to achieve what i want using s.len and s.substr
transformations.
-- juha
__
Hello,
On 4/12/10 6:14 PM, Juha Heinanen wrote:
i tried to embed a PV in regex transformation, but didn't get desired
result. is it possible or must regex only contain strings.
it supports only strings. The subst expression is pre-compiled at startup.
Some development is required to exte
i tried to embed a PV in regex transformation, but didn't get desired
result. is it possible or must regex only contain strings.
here is an example, where the idea is to strip string "456" from the end
of string "123456":
$var(test) = "123456";
$var(rest) = "456";
$var(te
17 matches
Mail list logo