Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2013-03

Bug in StrUtils.ReplaceStr and ReplaceText

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen
to Flávio Etrusco
Flávio Etrusco wrote
> functions ReplaceStr and ReplaceText don't set their results (in trunk). The bug is also present in 2.6.2.

True. They just call AnsiReplaceStr and AnsiReplaceText, without setting Result. A workaround is to use the Ansi... functions.

This bug has maybe been there forever, unless somebody decided to
remove the "Result := " part, which would be odd.

Juha

Reply by email

Anton Kavalenka
to Juha Manninen
Juha Manninen wrote 10 lines
True. They just call AnsiReplaceStr and AnsiReplaceText, without setting Result. A workaround is to use the Ansi... functions. This bug has maybe been there forever, unless somebody decided to remove the "Result := " part, which would be odd. Juha _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

r21810 joost 7.7.2012

* Added ReplaceStr and ReplaceText functions, for Delphi compatibility

Reply by email