Re: [PATCH 6/9] Eliminate unused ESCAPE_NULL, ESCAPE_SPACE flags
From: Andy Shevchenko
Date: Fri Sep 06 2019 - 06:17:21 EST
On Thu, Sep 05, 2019 at 03:44:30PM -0400, J. Bruce Fields wrote:
> From: "J. Bruce Fields" <bfields@xxxxxxxxxx>
>
> I can see how some finer-grained flags could be useful, but for now I'm
> trying to simplify, so let's just remove these unused ones.
>
> Note the trickiest part is actually the tests, and I still need to check
> them.
Currently this _tries_ to follow the shorthand character classes which is
established by tools. For example, "\s" = "[ \t\r\n\f]". Also it (almost?)
matches the counterpart, i.e. string_unescape() classes.
So, if we would need something else, perhaps better to do it in the separate
flags.
--
With Best Regards,
Andy Shevchenko