You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've now implemented this in a branch for the "script" escaping style (see the commit linked above).
Note that it's a bit hacky because it needs to get the wcstring, so I just added a method to get a reference to the arg_iterator_t's storage_, and since I still don't fully grok C++ reference lifetimes that might be not entirely correct.
I want to implement it for the other escape styles as well before I merge it.
I have now converted all string subcommands except for match and replace. Those are a bit trickier because of the interactions with pcre.
Also, as it turns out escape, unescape, upper and lower have a bunch of duplicated code - the latter two do the exact same thing except one passes "std::towupper" and the other "std::towlower".
Activity
faho commentedon Dec 19, 2017
Yup. The issue is that we're still using c-style strings all over the place. This might take a while to solve.
ridiculousfish commentedon Dec 25, 2017
This is fixable in each individual case - if there's some particular case that's blocking you please let us know.
[string] Allow `string escape` to handle NULs
faho commentedon Jan 2, 2018
I've now implemented this in a branch for the "script" escaping style (see the commit linked above).
Note that it's a bit hacky because it needs to get the wcstring, so I just added a method to get a reference to the arg_iterator_t's
storage_, and since I still don't fully grok C++ reference lifetimes that might be not entirely correct.I want to implement it for the other escape styles as well before I merge it.
[string] Allow url/var escaping to handle NULs
faho commentedon Jan 11, 2018
I have now converted all string subcommands except for
matchandreplace. Those are a bit trickier because of the interactions with pcre.Also, as it turns out
escape,unescape,upperandlowerhave a bunch of duplicated code - the latter two do the exact same thing except one passes "std::towupper" and the other "std::towlower".[string] Allow `string escape` to handle NULs
[string] Allow url/var escaping to handle NULs
[string] Allow `string escape` to handle NULs
[string] Allow url/var escaping to handle NULs
[string] Allow `string escape` to handle NULs
[string] Allow url/var escaping to handle NULs
[string] Allow `string escape` to handle NULs