Hi,
I think that the description of "StrSpn" and "StrCSpn" are exchanged. Anyway, in the replacement lib from Janni/Yo2lio the descriptions are different with respect to those in the help.
Thanks in advance!
StrSpn and StrCSpn functions in the help
StrSpn and StrCSpn functions in the help
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Re: StrSpn and StrCSpn functions in the help
They sound different but mean the same .Dany wrote:I think that the description of "StrSpn" and "StrCSpn" are exchanged. Anyway, in the replacement lib from Janni/Yo2lio the descriptions are different with respect to those in the help.
Compare the two sentences:
Computes the length of the maximum initial segment of the string S1
which consists entirely of the characters from the string S2
Now consider a string S1 of which first 2 chars may be found in S2. According to first sentence, result of StrSpn equals 2. According to the second description, result will equal 2, as well, because that's the index of first char not belonging to S2.The function returns the index of first character located in s1 that does not match a character in s2.
It's similar with the StrCSpn function.
- slavisa.zlatanovic
- mikroElektronika team
- Posts: 1321
- Joined: 07 Apr 2009 09:39
Re: StrSpn and StrCSpn functions in the help
Hi!
I'll notify our Help developers regarding this issue. It will be fixed in the next compiler release.
Sorry for the inconvenience.
I'll notify our Help developers regarding this issue. It will be fixed in the next compiler release.
Sorry for the inconvenience.
Best regards
Slavisa
Slavisa
Re: StrSpn and StrCSpn functions in the help
Hi Slavisa,
There doesn't seem to be a need for changes. Both functions work according to their descriptions.
True, I used another way to describe their functioning in a replacement lib, but the meaning is the same, even if at first sight the logic seems to be reversed.
There doesn't seem to be a need for changes. Both functions work according to their descriptions.
True, I used another way to describe their functioning in a replacement lib, but the meaning is the same, even if at first sight the logic seems to be reversed.
- slavisa.zlatanovic
- mikroElektronika team
- Posts: 1321
- Joined: 07 Apr 2009 09:39
Re: StrSpn and StrCSpn functions in the help
Ok!
It was a minor misunderstanding.
It was a minor misunderstanding.
Best regards
Slavisa
Slavisa