Sujet : Re: diff and patch
De : m.n.summerfield (at) *nospam* gmail.com (Mark Summerfield)
Groupes : comp.lang.tclDate : 17. Jun 2025, 19:51:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <102sder$2ilo3$1@dont-email.me>
References : 1 2
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
On Tue, 17 Jun 2025 12:13:59 GMT, Arjen wrote:
Mark Summerfield <m.n.summerfield@gmail.com> posted:
I want these functions:
proc diff {old new} -> # diff data "ddata"
proc patch {old ddata} -> # new
where old and new are strings.
I thought the Tcllib's rcs module could do this but I can't figure it
out.
Is this possible using the rcs module or using the struct::list
module's LCS functions?
The patch functionality (but not the diff) is provided by the textutil
package,
if I understand it correctly.
Yes, but this works on files; I need to work with strings.