SIGN IN SIGN UP

Move escape and unescape to names.h (NFC) (#8868)

This moves `escape` from `WasmBinaryReader` and `unescape` from
`wasm-split.cpp` to `names.h`.

Currently `unescape` is a helper function only used in `wasm-split.cpp`,
and this is a preparation for wasm-merge to use `unescape`. This also
moves `escape`, which is a pair, from `WasmBinaryReader`, because it is
not necessarily related to binary anyway.

This also changes the parameter type of `unescape` from `std::string` to
`Name`.
H
Heejin Ahn committed
d39a6d824e2d41faa7852289b0a8f4f2659f3cf6
Parent: 8a34ba8
Committed by GitHub <noreply@github.com> on 6/26/2026, 11:14:23 PM