>> I guess the convention is part of the FindStrInStr routine.  Metrowerks:
>> please consider changing it.
>
>Get and use FindHack. I'm not sure what Metrowerks has to do with it; I
>think the "problem" (feature? :-) is in FindStrInStr.

It is feature, intentionally done.  It is also the intended behavior of
FindStrInStr to find matches only at the start of words.  (The documention
says "partial word search"... perhaps it could be clearer.)

As to why the UI is defined this way: it would probably confuse users if
they searched for "put" and found references to computers, or "sin" and
found memos about businesses.  Those typically aren't the results you want
as a user, though they're strictly speaking valid matches.

As an aside, Metrowerks has nothing to do with what the Palm OS functions
do... and also we'd never change the behavior of an API like this since
it'd break lots of apps which rely on it not changing.  I think you want to
use StrStr for matching that isn't required to start at the beginning of a
word.

-David Fedor
Palm Developer Support


Reply via email to