PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] How often can we use strlen?
Date: Friday, 14 Feb 2020, 16:09:37


    > Message Posted By: JK
    >
    > In strwrs, can we assume that the replacement rules are short enough so we
    > can run strlen(Fi) and strlen(Ti) each time a replacement is being made?

Yes.
=====

    > It would be easy, just somewhat messier, to calculate all string lengths
    > when the arguments are first read in. That would then allow efficient
    > operation with absurdly long replacement strings.

That is not necessary.

--Stan-
PREV INDEX NEXT