[OpenSIPS-Users] How to change the order of characters in a string and ascii2hex

Răzvan Crainea razvan at opensips.org
Wed May 17 10:46:35 EDT 2017


Hello!

Yes, I was talking about the order of characters.

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 05/17/2017 04:06 PM, xaled wrote:
>
> Hi Răzvan
>
> What feature do you mean – changing the order of characters in a 
> string, or ascii2hex?
>
> I found s.encode.hexa that does what I meant with ascii2hex.
>
> I actually thought about an existing functionality a la reg expression 
> for changing the order of characters.
>
> If It is not possible to do with existing functionality I will open a 
> feature.
>
> Thanks,
>
> xaled
>
> *From:*Users [mailto:users-bounces at lists.opensips.org] *On Behalf Of 
> *Razvan Crainea
> *Sent:* Mittwoch, 17. Mai 2017 10:59
> *To:* users at lists.opensips.org
> *Subject:* Re: [OpenSIPS-Users] How to change the order of characters 
> in a string and ascii2hex
>
> Hi, Xaled!
>
> This might be interesting - if you need this feature, please open a 
> new feature request on our issue tracker[1] so we can centralize 
> everyting.
>
> [1] https://github.com/OpenSIPS/opensips/issues
>
> Best regards,
>
>
> Răzvan Crainea
> OpenSIPS Solutions
> www.opensips-solutions.com <http://www.opensips-solutions.com>
>
> On 05/16/2017 08:35 PM, xaled wrote:
>
>     Hello,
>
>     I have a question and a feature idea.
>
>     What is the best way to change the order of characters in a string?
>
>     I have a string “12345” and I want to get “21435”
>
>     It would be nice to have ascii2hex in addition to dec2hex
>
>     Thanks,
>
>     xaled
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170517/aea275f1/attachment-0001.html>


More information about the Users mailing list