Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-30 Thread Flávio Etrusco
Issue tracker: http://bugs.freepascal.org/view.php?id=16153 2010/3/30 Flávio Etrusco : > On Tue, Mar 30, 2010 at 6:04 AM, Marco van de Voort wrote: >> In our previous episode, Fl?vio Etrusco said: >>> >>> Second question: In current code, when ASubText is '', AnsiStartStr >>> returns False and >>

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-30 Thread Flávio Etrusco
On Tue, Mar 30, 2010 at 6:04 AM, Marco van de Voort wrote: > In our previous episode, Fl?vio Etrusco said: >> >> Second question: In current code, when ASubText is '', AnsiStartStr >> returns False and >> AnsiEndsStr returns True. Is this correct? > > If the string='' then ansistartsstr returns tr

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-30 Thread Marco van de Voort
In our previous episode, Fl?vio Etrusco said: > > Second question: In current code, when ASubText is '', AnsiStartStr > returns False and > AnsiEndsStr returns True. Is this correct? If the string='' then ansistartsstr returns true and endstr false if they string<>'' then both return false. I'm

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-30 Thread Jonas Maebe
On 30 Mar 2010, at 07:33, Flávio Etrusco wrote: 2010/3/29 Jonas Maebe : If accompanied by tests :) First question: is there a rule for test project names? Is tstrutils1.pp ok? Do I have to register the file somewhere? (couldn't find anything about it on the wiki) The name doesn't matter,

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-29 Thread Flávio Etrusco
2010/3/29 Jonas Maebe : > > On 29 Mar 2010, at 08:57, Michael Van Canneyt wrote: > >> On Sun, 28 Mar 2010, Flávio Etrusco wrote: >> >>> are StrUtils just for Delphi compatibility or are they meant for "real >>> use"? >>> In the first case, is there an alternative unit? In the second, would >>> simp

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-29 Thread Jonas Maebe
On 29 Mar 2010, at 08:57, Michael Van Canneyt wrote: On Sun, 28 Mar 2010, Flávio Etrusco wrote: are StrUtils just for Delphi compatibility or are they meant for "real use"? In the first case, is there an alternative unit? In the second, would simple patches to implement "AnsiStartsStr" and

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-28 Thread Michael Van Canneyt
On Sun, 28 Mar 2010, Flávio Etrusco wrote: Hello, are StrUtils just for Delphi compatibility or are they meant for "real use"? In the first case, is there an alternative unit? In the second, would simple patches to implement "AnsiStartsStr" and "AnsiEndsStr" with CompareMem (for starters) be a

[fpc-devel] StrUtils unit (is poorly implemented)

2010-03-28 Thread Flávio Etrusco
Hello, are StrUtils just for Delphi compatibility or are they meant for "real use"? In the first case, is there an alternative unit? In the second, would simple patches to implement "AnsiStartsStr" and "AnsiEndsStr" with CompareMem (for starters) be accepted? Best regards, Flávio _