tool: reorganize function c_escape around a dynbuf

This is a bit shorter and a lot safer.

Substrings of unescaped characters are added by a single call to reduce
overhead.

Extend test 1465 to handle more kind of escapes.

Closes #9653
This commit is contained in:
Patrick Monnerat 2022-10-05 18:51:16 +02:00 committed by Daniel Stenberg
parent eada290098
commit 2e475deb80
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 40 additions and 49 deletions

Binary file not shown.