Recent

Author Topic: SameStr function error in docs?  (Read 244 times)

Raskaton

  • New Member
  • *
  • Posts: 13
SameStr function error in docs?
« on: October 07, 2024, 04:25:03 pm »
Hi.

SysUtils.SameStr docs said "case-insensitive", but this is wrong!
https://www.freepascal.org/docs-html/rtl/sysutils/samestr.html

SameStr - must be "case-sensitive" (CompareStr is case-sensitive!),
SameText - is case-insensitive.

Just found bug in my programm becouse of this :(
If someone can path this, please do.

Thaddy

  • Hero Member
  • *****
  • Posts: 16168
  • Censorship about opinions does not belong here.
Re: SameStr function error in docs?
« Reply #1 on: October 07, 2024, 04:36:36 pm »
Correct, file a bug against the documentation.
If I smell bad code it usually is bad code and that includes my own code.

Bart

  • Hero Member
  • *****
  • Posts: 5466
    • Bart en Mariska's Webstek
Re: SameStr function error in docs?
« Reply #2 on: October 07, 2024, 05:57:51 pm »

 

TinyPortal © 2005-2018