[interfacekit] Re: BString near completion.... but I have a question
- From: Jack Burton <burton666@xxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Wed, 30 Oct 2002 14:59:08 +0100
On 2002-10-30 at 07:29:49 [+0100], you wrote:
> Since the function returns an int32 and is supposed to return B=3D5FERROR=
> if the character isn't found, I am not sure what to do... returning
> B=3D5FBAD=3D5FVALUE might break existing code - but then, if it passes a =
NULL
> pointer, it is already broken so we might be able to live with it :-)
Yeah, I think so.
Anyway, I encountered a big problem:
Look at this snippet of code:
=09BString string("A B C A B C");
=09BString string2("B");
=09
=09int32 i =3D string.FindLast(string2);
"i" is 8 here, as one would expect.
But if we change FindLast() with the case-insensitive version...
=09
=09BString string("A B C A B C");
=09BString string2("B");
=09
=09int32 i =3D string.IFindLast(string2);
"i" is B_ERROR !!! Something is bad here, and it sounds like a BString bug.
What should I do? If it was for me, I would fix it, even if it could break
existing code.
What do you think?=20
- Follow-Ups:
- [interfacekit] Re: BString near completion.... but I have a question
- From: Axel =?iso-8859-1?q?D=F6rfler
- References:
- [interfacekit] Re: BString near completion.... but I have a question
- From: Axel =?iso-8859-1?q?D=F6rfler
Other related posts:
- » [interfacekit] BString near completion.... but I have a question
- » [interfacekit] Re: BString near completion.... but I have a question
- » [interfacekit] Re: BString near completion.... but I have a question
- » [interfacekit] Re: BString near completion.... but I have a question
- » [interfacekit] Re: BString near completion.... but I have a question
- » [interfacekit] Re: BString near completion.... but I have a question
- [interfacekit] Re: BString near completion.... but I have a question
- From: Axel =?iso-8859-1?q?D=F6rfler
- [interfacekit] Re: BString near completion.... but I have a question
- From: Axel =?iso-8859-1?q?D=F6rfler