Hello,
The attached patches add more tests to expand/unexpand,
then incrementally extract common functionality into a new module
'expand-common.h'.
(The patches could be squashed before finalizing them, but easier to follow
when separate).
This could later serve as a basis for trying to add multibyte handling...
Comments welcomed,
- assaf