[TYPO3-core] replaceString and other changes

Martin Kutschker Martin.Kutschker at blackbox.net
Mon Mar 6 09:32:25 CET 2006


Franz Holzinger <franz at fholzinger.com> writes on 
Mon, 06 Mar 2006 07:53:22 +0100 (MET):

>
> You can put an additional parameter to addString. E.g. 0 as default
> for the normal behaviour and 1 for the adding at the front of the
> string.


I could, but this is not really obviuos and makes the TS setup harder to read.


> And someone wants it to be added somewhere inside of the left value.


Yeah: insertString(pos,str)

But this needs to be charset aware. I didn't look if it is easily available within t3lib_tsparser.


> And the maximum number of characters that will be added might be
> needed also.


Why? I don't understand.


> Or for replaceString the maxmum number of characters might be needed
> too,


??? If I want to replace "foo" with "bar", what is the "max. no. of chars."?

Masi 



More information about the TYPO3-team-core mailing list