Re: [SR-Users] $(hdr(name)[N]) question

2014-04-28 Thread Daniel-Constantin Mierla
On 28/04/14 10:51, Juha Heinanen wrote: Daniel-Constantin Mierla writes: I guess the $hdr(X[*]) uses comma-space for separation (haven't checked the sources). In your example, the second header test has two values in one line and $hdr(...) is simply returning all of them. since there is no ne

Re: [SR-Users] $(hdr(name)[N]) question

2014-04-28 Thread Juha Heinanen
Juha Heinanen writes: > are used all over the place and it would thus not be a good idea to edit > them. perhaps adding a new ones: > > #define PV_HDR_DELIM ", " > #define PV_HDR_DELIM_LEN (sizeof(PV_HDR_DELIM) - 1) > > would be ok. in the above ", " should, of course, have been ",". -- juha

Re: [SR-Users] $(hdr(name)[N]) question

2014-04-28 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > >> I guess the $hdr(X[*]) uses comma-space for separation (haven't checked > >> the sources). In your example, the second header test has two values in > >> one line and $hdr(...) is simply returning all of them. > > since there is no need for space, it should no

Re: [SR-Users] $(hdr(name)[N]) question

2014-04-28 Thread Daniel-Constantin Mierla
On 28/04/14 09:49, Juha Heinanen wrote: Daniel-Constantin Mierla writes: I guess the $hdr(X[*]) uses comma-space for separation (haven't checked the sources). In your example, the second header test has two values in one line and $hdr(...) is simply returning all of them. since there is no ne

Re: [SR-Users] $(hdr(name)[N]) question

2014-04-28 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I guess the $hdr(X[*]) uses comma-space for separation (haven't checked > the sources). In your example, the second header test has two values in > one line and $hdr(...) is simply returning all of them. since there is no need for space, it should not be there

Re: [SR-Users] $(hdr(name)[N]) question

2014-04-28 Thread Daniel-Constantin Mierla
On 25/04/14 16:15, Juha Heinanen wrote: Juha Heinanen writes: wiki was this related to $(hdr(name)[N]): If [N] is omitted then the body of the first header is printed. The first header is got when N=0, for the second N=1, a.s.o. In case of a comma-separated multi-body headers, it ret

Re: [SR-Users] $(hdr(name)[N]) question

2014-04-28 Thread Daniel-Constantin Mierla
On 24/04/14 16:10, Juha Heinanen wrote: wiki was this related to $(hdr(name)[N]): If [N] is omitted then the body of the first header is printed. The first header is got when N=0, for the second N=1, a.s.o. In case of a comma-separated multi-body headers, it returns all the bodies,

[SR-Users] $(hdr(name)[N]) question

2014-04-25 Thread Juha Heinanen
Juha Heinanen writes: > wiki was this related to $(hdr(name)[N]): > > If [N] is omitted then the body of the first header is printed. The > first header is got when N=0, for the second N=1, a.s.o. In case of a > comma-separated multi-body headers, it returns all the bodies, > comma-separa

[SR-Users] $(hdr(name)[N]) question

2014-04-24 Thread Juha Heinanen
wiki was this related to $(hdr(name)[N]): If [N] is omitted then the body of the first header is printed. The first header is got when N=0, for the second N=1, a.s.o. In case of a comma-separated multi-body headers, it returns all the bodies, comma-separated. i don't understand the last s